Server-related commands

service --status-all // View all state services

cd /etc/init.d //init.d folder to save all the services and contents of the above service --status-all output of the same

netstat -lntp // -l -n Show all monitoring services related to digital -t tcp -p displayed process name

systemctl restart sshd // restart sshd service

service httpd restart // restart httpd, older command  

--- docker installation refer to this URL: https: //www.runoob.com/docker/ubuntu-docker-install.html

  View docker docker version // version

  docker pull oddrationale / docker-shadow () socks // mounted shadow () SOCKS mirror, ps: parentheses behind the shadow is added for some reason. This blog just for the record number of orders, as the study is not intended to offend anyone ...

  docker run -d -p 2019: 2019 oddrationale / docker-shadow () socks -s 0.0.0.0 -p 2019 -k vkuajing.cc -m aes-256-cfb // start shadow () socks -p port number -. -m k cryptographic protocol, this should be the shadow () socks related commands

  docker ps -a // View all processes running in the docker

  docker rm (id first two) // remove services

  docker stop (id first two) // Stop Service

  restart Docker ( the above mentioned id first two ) // restart the service

  docker rmi (id first two) // remove services Mirror

  docker images // View all mirrored in the docker.

  sysctl net.ipv6.conf.all.disable_ipv6 = 1 // Close the ipv6

 

------------------------------------------------------------------------------------------------------------------------------
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadow()socks_install/master/shadow()socksR.sh chmod +x shadow()socksR.sh ./shadow()socksR.sh 2>&1 | tee shadow()socksR.log
./shadow()socksR.sh uninstall
/etc/init.d/shadow()socks status 

start: /etc/init.d/shadow () socks start
stop: /etc/init.d/shadow () socks stop
restart: /etc/init.d/shadow () socks restart
state: /etc/init.d/shadow () socks status
configuration file path: / etc / shadow () socks.json
log file path: / var / log / shadow ( ) socks.log
code installed directory: / usr / local / Shadow () SOCKS
----------------------------------------- -------------------------------------------------- -------------------------------------
 
 

 

 

Guess you like

Origin www.cnblogs.com/Ccluck-tian/p/11910841.html