独立服务

2017-01-12  本文已影响0人  随玉而安_gao

独立服务启动:

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命令管理服务自启动

上一篇下一篇

猜你喜欢

热点阅读