firewall-cmd --list-ports Copy the code
# Fire open port
firewall-cmd --zone=public --add-port=80/tcp --permanent Copy the code
# to restart
firewall
firewall-cmd --reload Copy the code
Check port usage
ss -tnpl [|grep 22]Copy the code
# check path
which nginx Copy the code
# System Version
uname -a Copy the code
# to check the IP
ip addr Copy the code
# Download file
Wget addressCopy the code
Set environment variables
vim ~/.bashrc Copy the code
# Enable environment variables
source ~/.bashrc Copy the code
Check the Java installation path
ls -lrt /usr/bin/java Copy the code
# delete user
userdel -r [username] Copy the code
# query permission
getsebool -a | grep ftp Copy the code
# change permission
setsebool tftp_anon_write onCopy the code