文章目录
一、程序安装
1. re|sz上传下载命令
//1.安装
yum -y install lrzsz
//2.上传
rz
//3.下载
sz [文件名]
2. JDK安装
-
JDK8:
https://www.cnblogs.com/wandoupeas/p/centos_jdk_install.html -
JDK11:
https://www.cnblogs.com/biem/p/13307438.html -
JDK14:
上传安装包到 /data/java//安装jdk14 tar -xzvf jdk-14.0.2_linux-x64_bin.tar.gz
3. unzip 解压命令
https://blog.youkuaiyun.com/wxyjuly/article/details/79398559
4.git安装
https://www.cnblogs.com/jhxxb/p/10571227.html
5. Telnet安装
https://www.cnblogs.com/sjpv/p/11812238.html
6. dstat命令安装
https://www.cnblogs.com/shoufeng/p/9739805.html
7. iostat安装及使用
https://www.cnblogs.com/architectforest/p/12628399.html
iostat -xmt 1
Key fields from iostat:
%util: this is the most useful field for a quick check, it indicates what percent of the time the device/drive is in use.
avgrq-sz: average request size. Smaller number for this value reflect more random IO operations.
8. wget命令安装
yum -y install wget
9. crul安装
yum -y install curl
二、环境配置
1. 防火墙端口
https://www.cnblogs.com/heqiuyong/p/10460150.html
//1.查看防火墙所有开放的端口
firewall-cmd --zone=public --list-ports
//2.开发端口
firewall-cmd --zone=public --add-port=27017/tcp --permanent
//3.生效
firewall-cmd --reload
//4 查看端口
netstat -lnpt
//查看指定端口
netstat -lnpt |grep 5672
2. 连接数设置
https://blog.youkuaiyun.com/hunhun1122/article/details/79391147?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
3. 网络超时设置
https://segmentfault.com/a/1190000021057175
https://docs.mongodb.com/v3.6/faq/diagnostics/#adjusting-the-tcp-keepalive-value
//使网络超时设置5分钟,超时后检测3次,每次30秒
vim /etc/sysctl.conf
//加入如下内容
net.ipv4.tcp_keepalive_time=300
net.ipv4.tcp_keepalive_intvl=30
net.ipv4.tcp_keepalive_probes=3
sysctl -p
sysctl -a | grep keepalive
三、命令参考
1. java cpu、内存分析命令
https://www.cnblogs.com/wu-wu/p/11923250.html
2. top命令详细
https://blog.youkuaiyun.com/xujiamin0022016/article/details/89072116
3. tar解压缩
// 1.打包压缩目录
tar -czvf kdnn_hall_20201209.tar.gz kdnn_hall_20201209121360/
4. 目录文件操作
// 1.删除backups目录30天之前修改的文件
find backups/ -mtime +30 -delete