美文网首页
独立服务

独立服务

作者: 随玉而安_gao | 来源:发表于2017-01-12 22:40 被阅读0次

    独立服务启动:

    1:使用/etc/init.d/目录中的脚本启动服务

    例如:/etc/init.d/  heepd  start|stop|restart

    2:使用Service命令启动服务

    例如:service  httpd  start|stop|restart

    独立服务自启动:

    1:使用chkconfig命令管理自启动

    例如:chkconfig  --level  2345   httpd   on|off

    2:修改/etc/rc.d/rc.local文件

    例如:vi  /etc/rc.d/rc.local

    加入:/etc/init.d/httpd.start

    基于xinetd的服务:

    启动:修改/etc/xinetd.d/配置文件

    例如:vi  /etc/xinetd.d/telnet

    把disable=yes改为disable=no

    重启xinetd服务:service  xinetd   restart

    自启动:

    使用chkconfig命令管理自启动

    例如:chkconfig  telnet  on|off

    使用ntsysv命令管理服务自启动

    相关文章

      网友评论

          本文标题:独立服务

          本文链接:https://www.haomeiwen.com/subject/ardjbttx.html