[root@izbp18dv3a3metugyd02qxz system]# systemctl daemon-reload [root@izbp18dv3a3metugyd02qxz system]# systemctl status mysqld [root@izbp18dv3a3metugyd02qxz init.d]# systemctl enable mysqld Created symlink from /etc/systemd/system/multi-user.target.wants/mysqld.service to /usr/lib/systemd/system/mysqld.service. [root@izbp18dv3a3metugyd02qxz init.d]# systemctl list-unit-files |grep enable |grep mysqld mysqld.service enabled 查看开启自启动项 [root@izbp18dv3a3metugyd02qxz ~]# systemctl list-unit-files |grep enable [root@izbp18dv3a3metugyd02qxz init.d]# chkconfig --list mysqld service mysqld添加自启动service mysqld start [root@izbp18dv3a3metugyd02qxz init.d]# ll /etc/init.d/mysqld [root@izbp18dv3a3metugyd02qxz init.d]# chkconfig --add mysqld [root@izbp18dv3a3metugyd02qxz init.d]# chkconfig --list mysqld
linux服务自启动配置
猜你喜欢
转载自www.cnblogs.com/hnhycnlc888/p/12124995.html
今日推荐
周排行