Fedora16 mysql
服务器启动
2012-03-10 16:32:50| 分类:
Linux/Unix |字号
订阅
从Fedora16开始,Redhat不再推荐ntsysv、chkconfig、service,而是建议使用新的服务管理工具systemctl (貌似功能强大)
任务 | 旧指令 | 新指令 |
使某服务自动启动 | chkconfig --level 3 httpd on |
|
使某服务不自动启动 | chkconfig --level 3 httpd off |
|
检查服务状态 | service httpd status |
|
显示所有已启动的服务 | (谁知道?) |
|
启动某服务 | service httpd start |
|
停止某服务 | service httpd stop |
|
重启某服务 | service httpd restart |
|
mysql安装:
yum install mysql mysql-server ##安装mysql及mysql服务器
systemctl start mysqld.service ##启动mysql服务器 systemctl enable mysqld.service##使mysql服务器自动运行
mysqladmin -u root password '' ##设置root密码为空