现在的位置: 首页 > 综合 > 正文

Fedora16 mysql 服务器启动

2013年05月26日 ⁄ 综合 ⁄ 共 765字 ⁄ 字号 评论关闭

Fedora16 mysql
服务器启动
  

2012-03-10 16:32:50|  分类:

Linux/Unix
|字号

 订阅

从Fedora16开始,Redhat不再推荐ntsysv、chkconfig、service,而是建议使用新的服务管理工具systemctl (貌似功能强大)

对比表,以 apache / httpd 为例
任务 旧指令 新指令
使某服务自动启动 chkconfig --level 3 httpd on
systemctl enable httpd.service
使某服务不自动启动 chkconfig --level 3 httpd off
systemctl disable httpd.service
检查服务状态 service httpd status
systemctl status httpd.service (服务详细信息) 
systemctl is-active httpd.service (仅显示是否 Active)

显示所有已启动的服务 (谁知道?害羞
systemctl list-units --type=service
启动某服务 service httpd start
systemctl start httpd.service


停止某服务 service httpd stop
systemctl stop httpd.service
重启某服务 service httpd restart
systemctl restart httpd.service

















mysql安装:

yum install mysql mysql-server ##安装mysql及mysql服务器
systemctl start mysqld.service ##启动mysql服务器 systemctl enable mysqld.service##使mysql服务器自动运行
mysqladmin -u root password '' ##设置root密码为空

抱歉!评论已关闭.