`

linux命令

阅读更多

1. 添加用户组

groupadd mysql

 2.添加用户

useradd -g mysql -G root mysql

 3.删除用户

userdel mysql

 4.重启linux

shutdown -r now

 或者

reboot

 5.自启服务列表

chkconfig --list

 6.添加自启服务

chkconfig --add mysql

 7.启动服务

service mysql start

 8.停止服务

service mysql stop

 9.查看端口

netstat -na | grep 3306

 10.关闭防火墙

临时:

开启: chkconfig iptables on 
关闭: chkconfig iptables off 

 永久:

开启: service iptables start 
关闭: service iptables stopiptables

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics