linux查看ftp日誌
發布時間: 2024-11-30 06:33:19
1、春洞鍵連接扒巧上相應的linux主機,進入到等待輸入shell指令的linux命令行狀態下。
『貳』 Linux 怎麼查看FTP服務安裝沒有
linux查看ftp服務是否安裝,用到的工具:xshell,步驟如下:
登錄linux伺服器,執行以下兩條命令:
ps-aux|grepftpd
netstat-na|grep21
輸出:
[root@ebs-18307~]#ps-aux|grepftpd
root4740.00.0153652852?SsMar060:00pure-ftpd(SERVER)
root155560.00.0112648976pts/0S+11:130:00grep--color=autoftpd
[root@ebs-18307~]#netstat-na|grep21
tcp00211.149.155.84:8061.158.167.19:61072SYN_RECV
tcp000.0.0.0:210.0.0.0:*LISTEN
tcp052211.149.155.84:22000106.114.77.228:30522ESTABLISHED
tcp00211.149.155.84:80218.31.113.112:60611TIME_WAIT
tcp00211.149.155.84:80120.76.25.49:65426TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60648TIME_WAIT
tcp00211.149.155.84:80211.149.175.214:39829TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60681TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60630TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60642TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60672TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60636TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60646TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60638TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60626TIME_WAIT
tcp00211.149.155.84:80110.74.194.66:15815TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60644TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60670TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60632TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60628TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60634TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60640TIME_WAIT
tcp00211.149.155.84:80218.31.113.112:60624TIME_WAIT
tcp600:::21:::*LISTEN
unix3[]STREAMCONNECTED12100/var/run/dbus/system_bus_socket
unix2[]DGRAM12124
unix3[]STREAMCONNECTED12122/var/run/dbus/system_bus_socket
unix2[]DGRAM12101
unix3[]STREAMCONNECTED12121
說明:從代碼上可以分析到,演示linux伺服器安裝了pure-ftpd,開啟了21埠。
效果圖:
注意事項:ftp埠默認是21,可以更改。
熱點內容