lunix指令
檢索符合條件的日志
tail -f .file |grep test
退出vi
:q!
删除
rm -rf *
檢索曆史指令
history |grep test
檔案下載下傳上傳
scp -r root@dev:/opt/gitdb/xx.tar /home/dd/app/
scp -r openjdk-11+28_linux-x64_bin.tar.gz root@xx:/home/app
端口
[root@localhost ~]$ ss # 檢視所有建立的連接配接
[root@localhost ~]$ ss -s # 檢視連接配接的統計資訊(常用)
[root@localhost ~]$ ss -tnl # 檢視所有監聽的端口
[root@localhost ~]$ ss -tlr # 檢視IP對應的域名
[root@localhost ~]$ ss -tlp # 檢視監聽端口的程序
背景運作jar包
nohup java -jar $target_jar --spring.profiles.active=test 2>&1 &
測試端口
telnet 127.0.0.1 8080
ping 192.168.1.1
檢視程序
jps
防火牆
systemctl status firewalld檢視目前防火牆狀态。 systemctl stop firewalld關閉目前防火牆。 systemctl disable firewalld開機防火牆不啟動。
内網穿透
ssh -R 9999:localhost:14022 server
軟連接配接指向
ln -s navicat15-premium-cs-pathed.AppImage start
端口占用
netstat -tunlp | grep 端口号,用于檢視指定端口号的程序情況
sftp連接配接
sftp -oPort=22 [email protected]