您的位置:首页 > 运维架构 > Linux

Linux增加开机启动的服务

2006-10-08 12:45 330 查看
编辑 /etc/rc.d/rc.local

如下:

[root@localhost etc]# vi rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
#cd /usr/local/mysql; /usr/local/mysql/bin/safe_mysqld --user=mysql &
/usr/local/mysql/support-files/mysql.server start
/usr/local/apache/bin/apachectl start
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: