Saturday, April 20, 2024

Webmin无法启动proftpd

在CentOS 6 32bit系统的Xen VPS中安装Webmin后,发现proftpd服务未启动。

使用Putty输入

service proftpd restart

屏幕提示

Shutting down proftpd: [FAILED]
Starting proftpd: [FAILED]

因为proftpd默认没有开启日志的记录,所以/var/log/proftpd/ 这个目录下是空的,所以没法查看错误日志。
运行:

proftpd

屏幕提示

 - warning: unable to determine IP address of 'MyVPS'
 - error: no valid servers configured
 - Fatal: error processing configuration file '/etc/proftpd.conf'

根据错误提示,proftpd无法确定VPS的IP地址。

解决方法:
1、在配置文件/etc/proftpd.conf里面增加VPS的IP(请根据实际IP填写,这里用198.168.8.8举例);

DefaultAddress 198.168.8.8

2、修改主机名 /etc/hosts

vi /etc/hosts
198.168.8.8 MyVPS

保存退出后,输入:

service proftpd start

OK,成功启动proftpd。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.