Browse Source

更新 'init.md'

胡增文 4 months ago
parent
commit
94c8422cfc
1 changed files with 3 additions and 4 deletions
  1. 3 4
      init.md

+ 3 - 4
init.md

@@ -62,11 +62,10 @@ sudo docker run -d \
 ### 6.查找工控机
 
 ```
-sudo apt  install nmap
-nmap -n -v -sT -p 22 192.168.3.0/24 | grep 'open'
+sudo apt -y install nmap && nmap -n -v -sT -p 22 192.168.3.0/24 | grep 'open'
+
+sudo echo 'Acquire::http::Proxy "http://192.168.3.251:6667/";' > /etc/apt/apt.conf
 
-sudo vi /etc/apt/apt.conf
 
-Acquire::http::Proxy "http://192.168.3.251:6667/";
 
 ```