linux设定时间查看文件,查看linux系统,服务,配置文件被修改的时间
如何查看服務啟動時間
[[email?protected] /]# ps -ef |grep nginx
root 14730 1 0 16:45 ? 00:00:00 nginx: master process
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody 14731 14730 0 16:45 ? 00:00:00 nginx: worker process
nobody 14732 14730 0 16:45 ? 00:00:00 nginx: worker process
root 14734 11720 0 16:45 pts/0 00:00:00 grep nginx
[[email?protected] /]# ps -eo pid,lstart,etime |grep 14730
如何查看服務器啟動時間
[[email?protected] /]# uptime
16:47:11 up 21 days, 16:57, 1 user, load average: 0.00, 0.00, 0.00
如何查看配置文件被修改的時間
stat /usr/local/nginx/conf/nginx.conf
File: `/usr/local/nginx/conf/nginx.conf’
Size: 1614 Blocks: 8 IO Block: 4096 regular file
Device: fc01h/64513d Inode: 66458 Links: 1
Access: (0644/-rw-r–r–) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-07-08 15:47:24.000000000 +0800
Modify: 2015-07-08 15:47:24.000000000 +0800
Change: 2015-07-08 15:47:24.000000000 +0800
原文:http://www.cnblogs.com/dantes91/p/5007781.html
總結
以上是生活随笔為你收集整理的linux设定时间查看文件,查看linux系统,服务,配置文件被修改的时间的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下运行纯dos软件,在linu
- 下一篇: linux 其他常用命令