OS:CentOS release 6.8 (Final)
mysqlmysql -u rootservice mysqld status
apacheservice httpd statusapachectl status
可以測試apachectl configtest
sendmailservice sendmail restart
發測試信# mail -s "title" john@example.com <<< "hello"# sendmail -s "test" john@example.com <<< "hello~~"
有一天我在學校的主機斷電之後..
居然之後怎樣都連不上
弄了半天原來是防火牆問題…
查看現有規則service iptables statusiptables -L -n
|
|
記得存不然重開會不見service iptables save
重啟service iptables restart
Portnetstat -tlpnetstat -tnlp
2017/07/10 Update
ref: https://serverfault.com/questions/472145/apache-httpd-not-starting-automatically-on-boot
|
|