CentOS7常用命令
防火墙相关
1 | firewall-cmd --state |
1 | systemctl start firewalld |
1 | systemctl stop firewalld |
1 | firewall-cmd --zone=public --list-ports |
1 | firewall-cmd --reload |
1 | firewall-cmd --zone=public --add-port=9000/tcp --permanent |
1 | firewall-cmd --zone=public --remove-port=9000/tcp --permanent |
查看相关
1 | netstat -lnpt |
1 | du -h --max-depth=0 ./hexo/ |
启动
1 | nohup ./minio server --address 0.0.0.0:9000 ./data/ & |
1 | nohup java -jar xxl-job-admin-2.3.0.jar > xxl_log.log 2>&1 & |
解压
1 | tar zxvf ./redis.tar.zip -C ./redis-6.0.9 |
1 | tar zcvf /zzz.tar.gz ./zzz |
文件操作
1 | cp -a 原文件 目标文件 |
1 | mv -f 原文件 移动的地址 |
1 | mkdir xxx |
1 | rm -rf ./xxx |
检索
1 | find / -iname redis-node.conf |
持续更新中...
FTP文件拷贝
1 | scp -P 2216 -r E:/Users/Administrator/Downloads/.git root@218.95.37.69:/data/ocr/ancient-books-ai-project |

