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,可以更改。
热点内容