Start/Stop and Restart Service
2007-07-23 08:43:29
Start/Stop and Restart Service
Apache Web Server
#apachectl start/stop/restart หรือ
#/etc/rc.d/init.d/httpd start/stop/restart หรือ
#service httpd start/stop/restart
Squid Proxy Server
#/etc/rc.d/init.d/squid start/stop/restart หรือ
#service squid start/stop/restart
DHCP
#/etc/rc.d/init.d/dhcpd start/stop/restart หรือ
#service hdcpd start/stop/restart
DNS
#/etc/rc.d/init.d/named start/stop/restart
#service named start/stop/restart
Sendmail
#/etc/rc.d/init.d/sendmail start/stop/restart
#service sendmail start/stop/restart
NFS
#/etc/rc.d/init.d/nfs start/stop/restart
#service nfs start/stop/restart
Samba
#/etc/rc.d/init.d/smb start/stop/restart
#service smb start/stop/restart
Network
#/etc/rc.d/init.d/network start/stop/restart
#service network start/stop/restart
FTP,imap4,pop3
#/etc/init.d/xinetd start/stop/restart
หมายเหตุ Service ทั้ง 3 นี้ ต้องไป config ที่ไฟล์ /etc/xinetd.d/ipop3,imap,ftp ให้ disable =yes ก่อน
vsftpd
#/etc/rc.d/init.d/vsftpd start/stop/restart หรือ
#service vsftpd start/stop/restart