ubuntu升級後出現錯誤訊息
1.網頁無法開啟(重開網頁)出現以下錯誤訊息
------------------------------------------------------------
/etc/init.d/apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 208 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
------------------------------------------------------------
註解第208行
#Include httpd.conf
2.
下載亮哥防火牆程式
http://163.23.89.100/pub/sfs_tool/ufirewall.N2.sh.txt
sudo mv ufirewall.N2.sh.txt firewall.sh #變更名稱
sudo chmod 755 firewall.sh #變更為可執行
#查詢網卡名稱
ifconfig
#編修防火牆內容
sudo vim firewall.sh
...................................
將程式拷貝到系統執行目錄/bin內
sudo cp firewall.sh /bin/
寫到開機自動執行檔內 /etc/rc.local
sudo vim /etc/rc.local
在exit 0 之前加入 /bin/firewall.sh
#啟動防火牆
sudo /bin/firewall.sh
3.There are 2 zombie processes.
找尋 zombie processes 的方式
# ps aux | grep 'Z'
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2589 0.0 0.0 0 0 pts/0 ZN 15:11 0:00 [bandwidthd] <defunct>
root 2590 0.1 0.0 0 0 pts/0 ZN 15:11 0:00 [bandwidthd] <defunct>
root 2591 0.1 0.0 0 0 pts/0 ZN 15:11 0:00 [bandwidthd] <defunct>
root 2593 0.0 0.0 10468 904 pts/0 S+ 15:11 0:00 grep --color=auto Z
或
# ps axo pid=,stat= | awk '$2~/^Z/ { print $1 }'
2589
2651
2652
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。