1、linux操作基础命令
rm -rf 文件夹名称
passwd root
sestatus
df -h
df -T
fdisk -l
tar -zxvf file.tar.gz
tar -zcvf file.tar.gz file
yum install vim
ps -aux pid
cd /proc/pid
cat status
kill -9 ppid
kill -9 pid
1、E: Package ‘vim’ has no installation candidate错误处理
apt-get update && apt-get install vim
2、linux服务器基础配置
vim /etc/ssh/sshd_config
Port 22
systemctl restart sshd
firewall-cmd --permanent --zone=public --add-port=3322/tcp
firewall-cmd --reload
firewall-cmd --zone=public --list-ports
firewall-cmd --zone=public --remove-port=5672/tcp --permanent
firewall-cmd --state
systemctl stop firewalld.service
netstat -lnpt
https://www.bt.cn/ 官网地址
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh