LiuYuan's Blog
This is LiuYuan's Blog
Toggle navigation
LiuYuan's Blog
Home
Docker相关
MySQL相关
Ansible相关
维护脚本相关
Windows系统脚本
Python相关
Nginx相关
About Me
Archives
Tags
命令备忘
2024-07-10 15:52:50
108
0
0
admin
#命令备忘 #当前目录下,文件和文件夹按大小排序并显示大小 du -sh * | sort -hr #显示当前目录下所有文件夹的大小 du --max-depth=1 -h #查看一个进程的父进程 lsof -p <PID> pstree -p <PID> pstree -p | grep "<PID>" #系统日志指定大小和保留时间 journalctl --vacuum-time=2d journalctl --vacuum-size=500M #npm源 npm install --registry=https://registry.npm.taobao.org npm install --registry=https://registry.npmmirror.com npm install --registry=https://mirrors.cloud.tencent.com/npm/ #phpinfo <?php phpinfo(); ?> #docker打tag并推送至远程仓库 harbor.net替换为仓库地址 docker build --tag imagename:v$BUILD_ID . docker tag imagename:v$BUILD_ID harbor.net/imagename:v$BUILD_ID docker push harbor.net/imagename:v$BUILD_ID
Pre:
SSL证书监控脚本
Next:
MySQL备份脚本
0
likes
108
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Footer
Table of content