サービス自己起動の設定

528 ワード

apache
[root@sample~]#chkconfig httpd on←HTTPサービス自己起動設定
[root@sample ~]#       chkconfig --list httpd
http 0:off 1:off 2:on 3:on 4:on 5:on 6:off←2--5がonの状態でOK
netstat -tunl | grep ':80'

mysql
[root@sample~]#chkconfig mysqld on←MySQLサービスの設定システム起動に伴う自己起動
[root@sample~]#chkconfig--list mysqld←MySQLの自己起動確認
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off←2--5がonの状態ならOK
毎回買ったサーバーは、もしサービス業者が物を詰めたら、管理していません.rebootの後、意外にもウェブサイトが開けられません.これらのサービスはシステムに従って自動的に起動していません.