西木-Lee

 

文章分类 -  linux

centos查找并删除shell
摘要:查询10天前的jar包,并删除 find /data/project/*/*.jar -mtime +10 |xargs rm -fr ; 添加任务crontab -e # 每天1点,执行shell脚本0 0 1 * * /data/project/clear_log_7.sh 阅读全文

posted @ 2020-10-13 15:26 西木-Lee 阅读(208) 评论(0) 推荐(0)

(转)查看linux磁盘空间
摘要:1.查询磁盘空间占用情况 df -h 2.进入根目录,查询大文件与目录 cd / du -sh * | sort -n 查看上GB的目录并且排序,可以用这个命令 du -h --max-depth=1 |grep 'G' |sort 然后不断执行上面的过程,进入大文件目录,定位大文件并删除 4.如果 阅读全文

posted @ 2020-03-26 11:17 西木-Lee 阅读(86) 评论(0) 推荐(0)

centos安装nginx
摘要:To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below: CentOS: 1 [nginx] 2 name=nginx 阅读全文

posted @ 2017-07-28 14:43 西木-Lee 阅读(108) 评论(0) 推荐(0)

导航