zoukankan      html  css  js  c++  java
  • 查看linux系统,服务,配置文件被修改的时间

    如何查看服务启动时间
    [root@qike /]# 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
    [root@qike /]# ps -eo pid,lstart,etime |grep 14730
    如何查看服务器启动时间
    [root@qike /]# 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

  • 相关阅读:
    1
    vim配置
    pyspark
    添加底部小火箭+目录
    00
    博客园代码高亮设置
    01. 枚举类型
    01. 授权问题
    Android Studio打包签名全过程
    linux 阿里云源地址
  • 原文地址:https://www.cnblogs.com/dantes91/p/5007781.html
Copyright © 2011-2022 走看看