Virtualmin/Webmin安装后proftpd无法启动,启动不了ftp,怎么办?
[root@654z ~]# service proftpd stop
关闭 proftpd:[失败]
[root@654z ~]# service proftpd start
启动 proftpd:[失败]
启动 proftpd:[失败]
[root@654z ~]# yum list proftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.tt.co.kr
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirror.yongbok.net
Installed Packages
proftpd.i386 1.3.3c-1.el5.vm installed
[root@654z ~]# proftpd -v
ProFTPD Version 1.3.3c
[root@654z ~]# cd /var/log/proftpd/
[root@654z proftpd]# ls
[root@654z proftpd]# ls -al
鎬昏? 16
drwxr-x--- 2 root root 4096 11-18 07:10 .
drwxr-xr-x 18 root root 4096 03-31 04:46 ..
[root@654z proftpd]# proftpd
- warning: unable to determine IP address of '654z.com__D__D__D__D__D__D_'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd.conf'
由第一句可知相关的域名解析错误,找到原因,解决办法: 修改hostname,如下,我们修改为 cto.home.com
[root@654z proftpd]# uname -a
Linux cto.home.com 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux
[root@654z proftpd]# proftpd
[root@654z proftpd]# service proftpd stop
关闭 proftpd:[确定]
[root@654z proftpd]# service proftpd restart
关闭 proftpd:[失败]
启动 proftpd:[确定]
[root@654z proftpd]#
搞定