服务器重启后,proftpd没有起来,service proftpd start报“proftpd启动失败”,但没有详细信息
cd /var/log/proftpd,tail了下面的日志,也没有关于不能启动的信息
幸好上网搜索到可以直接输入proftpd来测试启动。这样运行就有报错信息:
[root@test ~]# proftpd
- warning: the DisplayFirstChdir directive is deprecated and will be
removed in a future release. Please use the DisplayChdir directive.
- processing configuration directory ‘/etc/proftpd/ispcp’
- warning: unable to determine IP address of ‘test.test.com’
- error: no valid servers configured
- Fatal: error processing configuration file ‘/etc/proftpd.conf’
既然不能解析到test.test.com,就修改/etc/hosts啦!
vi /etc/hosts
192.168.100.100 test.test.com test
保存退出后就OK了,service proftpd start可以成功启动。
几个查看FTP状态的命令:
ftpcount
ftpwho
ftptop
ftpdctl