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
如下:
[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
相关文章推荐
- linux上设置mysql等服务开机启动
- 树莓派上Java程序作为linux服务并开机自动启动
- 在linux下如何把smb等服务加入开机启动
- 如配置tomcat为Linux启动服务,开机启动,登陆启动
- linux设置开机服务自动启动/关闭自动启动命令
- Linux Oracle服务启动&停止脚本与开机自启动
- linux设置开机服务自动启动/关闭自动启动命令
- Linux下开机启动tomcat,添加服务
- linux开机启动服务和chkconfig使用方法
- linux开机启动服务的修改与查看
- linux下将编译安装的服务设置为开机启动
- Linux Oracle服务启动&停止脚本与开机自启动 详细
- 《linux优化之需要开机启动的重点服务详解》
- Linux Oracle服务启动&停止脚本与开机自启动
- linux设置开机服务自动启动/关闭自动启动命令
- linux开机启动服务详细讲解(转)
- linux服务开机启动顺序
- linux设置开机服务自动启动/关闭自动启动命令
- linux设置开机服务自动启动
- 介绍Linux系统如何初始化和启动系统服务的(Linux的开机流程)