随笔分类 - linux server
摘要:$ uname -aLinux shadow 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:27:31 UTC 2012 i686 i686 i686 GNU/Linux$vsftpd -vvsftpd: version 2.3.51,随便在一个位置写个文件logins.txt,里面存放要登陆的账号和密码 必须是偶数行,如:mike(登陆的账号)pwdefe(上一个账号mike的密码)2,生成vsftpd的认证文件 db_load -T -t hash -f logins.txt /etc/vsftpd/vsftpd_login.db (此文件..
阅读全文
摘要:重启后永久性生效:开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后失效:开启: service iptables start关闭: service iptables stop需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。在开启了防火墙时,做如下设置,开启相关端口, 修改/etc/sysconfig/iptables 文件,添加以下内容: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEP.
阅读全文
摘要:spider@shadow:~$ service vsftpd restartstop: Rejected send message, 1 matched rules; type="method_call", sender=":1.92" (uid=1000 pid=6437 comm="stop vsftpd ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" request
阅读全文