日期:2014-05-16  浏览次数:20748 次

在Suse Linux下如何正确安装vsftp的tar包?
我所做的
1 上传vsftpd-1.2.1到/usr/tl/目录下
2 tar zxvf vsftpd-1.2.1.tar.gz
  cd vsftpd-1.2.1
  make;
  make install;
  在make install后返回的是:

  if [ -x /usr/local/sbin ]; then \
  install -m 755 vsftpd /usr/local/sbin/vsftpd; \
else \
  install -m 755 vsftpd /usr/sbin/vsftpd; fi
if [ -x /usr/local/man ]; then \
  install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
  install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
elif [ -x /usr/share/man ]; then \
  install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
  install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
else \
  install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
  install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
if [ -x /etc/xinetd.d ]; then \
  install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi

3 之后 /etc/xinetd.d/vsftpd启动vsftpd,但是报如下错误:
  linux:/ # /etc/xinetd.d/vsftpd start
/etc/xinetd.d/vsftpd: line 6: service: command not found
/etc/xinetd.d/vsftpd: line 8: socket_type: command not found
/etc/xinetd.d/vsftpd: line 9: wait: `=': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 9: wait: `no': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 10: user: command not found
/etc/xinetd.d/vsftpd: line 11: server: command not found
nice: =: No such file or directory
/etc/xinetd.d/vsftpd: line 16: disable: command not found

这是为什么啊?

 

------解决方案--------------------
探讨

不好意思,刚接触linux。。。
linux:/ # /etc/init.d/vsftpd start
-bash: /etc/init.d/vsftpd: No such file or directory
找不到这个vsftpd啊

------解决方案--------------------
500 OOPS: vsftpd: cannot open config file:restart
---------------------
错误很明显了哦。
你复制的那个vsftpd是程序本身 并不是启动脚本 他不是/etc/init.d/vsftpd restart这样启动
你这样 他把restart当成设定文件了 
由此看出 我刚才给你的那个链接你根本没看
到你刚才的安装目录 执行cp vsftpd.conf /etc
然后执行/etc/init.d/vsftpd
------解决方案--------------------
而且你自己去/etc/init.d/看看 那里的文件都是启动脚本 而并非程序本身。
------解决方案--------------------
说不定你现在已经启动了一个vsftpd了。
pidof vsftpd | xargs kill -9
然后执行/etc/init.d/vsftpd启动


如果上面的命令不好用 你就ps -ef | grep vsftpd 看看进程id
然后kill -9 pid
再/etc/init.d/vsftpd