参考 http://www.cnblogs.com/panjun-Donet/archive/2010/08/10/1796873.html

如何增加一个服务:
1.服务脚本必须存放在/etc/ini.d/目录下;
2.chkconfig --add servicename
    在chkconfig工具服务列表中增加此服务,此时服务会被在/etc/rc.d/rcN.d中赋予K/S入口了;
3.chkconfig --level 35 mysqld on
    修改服务的默认启动等级。

cp /opt/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig mysqld on

/etc/rc.d/init.d/mysqld start
cd /opt/mysql/
bin/mysql_secure_installation

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2021-03-30
  • 2022-12-23
  • 2021-04-17
  • 2021-08-29
  • 2021-05-22
猜你喜欢
  • 2021-07-23
  • 2022-02-20
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案