Server connection

nohup ss-server -s 0.0.0.0 -p 443 -k a29rw4pacnj2ahmf -m aes-192-cfb -t 60 & 
phrase open run shadowsocks shell command, -p specify the port number, -k specify a password, -m specified encryption , -t specified time, -s specify which address can access, 0.0.0.0 representatives listen to any address.
There are several work instruction sentence premise:
1. The port number is unoccupied
2. The open firewall port number
3. The port number (Ali cloud servers) in a secure set of rules

Firewall firewall
View firewall status

firewall-cmd --state

Open the firewall:

systemctl start firewalld

Restart the firewall:

systemctl restart firewalld

Turn off the firewall:

systemctl stop firewalld

View firewall rules:

firewall-cmd --list-all

 

Query 8080 is open
firewall-cmd --query-port = 8080 / tcp
open port 80
firewall-cmd --permanent --add-port = 80 / tcp
remove port 8080
firewall-cmd --permanent --remove-port = 8080 / tcp

# Restart the firewall (firewall to restart after configuration changes)
Firewall-cmd --reload



View Port occupation:
netstat -tunlp | grep 8080
  • -t (tcp) only show tcp related options
  • -u (udp) shows only relevant options udp
  • -n alias rejection display can display full conversion to digital numbers
  • -l lists only the service status in Listen (listen) of
  • -p displays the name of the program to establish links

kill -9 process ID




Guess you like

Origin www.cnblogs.com/izrail/p/11618227.html