find / -name httpd.conf?
這個命令語法看起來很容易就明白了,就是直接在find后面寫上 -name娘摔,表明要求系統按照文件名查找,最后寫上httpd.conf這個目標文件名即可。稍等一會系統會在計算機屏幕上顯示出查找結果列表:etc/httpd/conf/httpd.conf
ctrl+z 掛起一個進程之后 輸入fg(frontground)恢復
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 更改系統時間為北京時間
編輯/etc/crontab文件樟插,在末尾加上一行: 30 5 * * * root init 6 這樣就將系統配置為了每天早上5點30自動重新啟動。
apt-get install cron
/etc/init.d/cron restart
crontab -e
0 1 * * * /sbin/reboot
每天凌晨1點重啟服務器。編輯完畢之后:wq保存退出黄锤。
/etc/init.d/cron restart