Virtualmin/Webmin安装后proftpd无法启动,启动不了ftp,怎么办?
[root@ctohome ~]# service proftpd stop
关闭 proftpd:[失败]
[root@ctohome ~]# service proftpd start
启动 proftpd:[失败]
启动 proftpd:[失败]
[root@ctohome ~]# 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@ctohome ~]# proftpd -v
ProFTPD Version 1.3.3c
[root@ctohome ~]# cd /var/log/proftpd/
[root@ctohome proftpd]# ls
[root@ctohome 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@ctohome proftpd]# proftpd
- warning: unable to determine IP address of 'ctohome.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@ctohome 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@ctohome proftpd]# proftpd
[root@ctohome proftpd]# service proftpd stop
关闭 proftpd:[确定]
[root@ctohome proftpd]# service proftpd restart
关闭 proftpd:[失败]
启动 proftpd:[确定]
[root@ctohome proftpd]#
搞定
在看一个proftpd无法启动的案例:
proftpd
- warning: unable to determine IP address of 'vps691.ctohome.com'
- warning: unable to determine IP address of 'vps691.ctohome.com'
- ProFTPD terminating (signal 11)
- FTP session closed.
Segmentation fault
[root@vps691 ~]# more /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
2625:ea00:1:1::f134:1a18 vps691.ctohome.com vps691 (原来IPV6地址也无法被proftpd识别,这里我们改成ipv4地址,就ok了)