分享

开机自动运行suse后台程序

 hh3755 2011-08-19
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/541193

redhat 怎样开机自动启动apache

浏览次数:1386次悬赏分:0 | 解决时间:2007-11-30 15:51 | 提问者:cld007
redhat 怎样开机自动启动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回车




    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多