Friday, April 26, 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.