Linux入門 Service管理 参考資料
Service管理
スライドP10 Service管理デーモン
su -
pstree
スライドP15 Service管理の仕組
cd /etc/init
cat rcS.conf
スライドP16 Service管理コマンド
cd /etc/init
vi sample-job.conf
start on samle-event
exec /bin/logger "start on event"
:wq!
initctl emit sample-event
スライドP17 Service管理コマンド
tail /var/log/messages
initctl start sample-job
tail /var/log/messages
スライドP18 Service管理コマンド
cd /etc/rc.d/init.d
ls
スライドP19 Service管理コマンド
service httpd status
service httpd start
スライドP20 Service管理コマンド
service httpd restart
service httpd stop
スライドP22 Service管理コマンド
chkconfig --list
スライドP23 Service管理コマンド
chkconfig httpd --list
スライドP24 Service管理コマンド
chkconfig httpd on
chkconfig mysqld on
chkconfig httpd --list
chkconfig mysqld --list
スライドP25 ローカル開発環境の仕上げ
cat /etc/sysconfig/network
vi /etc/hosts
192.168.33.10 vagrant vagrant-centos65.vagrantup.com
:wq!
スライドP26 ローカル開発環境の仕上げ
vi /etc/httpd/conf/httpd.conf
ServerName vagrant-centos65.vagrantup.com:80
:wq!
exit
exit
スライドP27 ローカル開発環境の仕上げ
ls
vagrant halt
vi Vagrantfile
confing.vm.network "private_networdk", ip: "192.168.33.10"
:wq!
vagrant up