SUSE LINUX 开机自动启动服务 由Linux系统中文网(Linux521.com)编辑收集整理,除Linux521注明原创文章外,其版权归原作者所有。如果您在学习中遇到问题欢迎在下面的评论中留言,我们会尽全力解答您的问题。 此处以开机自动启动APACHE2服务为例. 安装完APACHE2包后默认在/etc/init.d目录下创建一个脚本apache2. 在/etc/rc.d/rc?.d下建立一个软链接指向 /etc/init.d/apache2即可.#此处?表示运行等级. 我的运行等级是3. 故执行ln -s /etc/init.d/apache2 /etc/rc.d/rc3.d/S11apache2. 这样就OK了 本文出自 “Xin23的历程” 博客,请务必保留此出处http://xin23.blog.51cto.com/1827266/541193redhat 怎样开机自动启动apache vi /etc/rc.d/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 /etc/init.d/httpd start (按i插入此行) ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 按esc 输入:wq回车 |
|