美文网首页
linux 常用命令积累

linux 常用命令积累

作者: YouR丶Beautiful | 来源:发表于2018-05-20 14:15 被阅读0次

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

相关文章

网友评论

      本文标题:linux 常用命令积累

      本文链接:https://www.haomeiwen.com/subject/baqtjftx.html