vsftpd安装配置:
vsftpd安装配置本来不难,但是我遇到了一些问题,顺便记录下来。
1. 安装 #apt-get install vsftpd
2. 添加账号 #useradd -d /wwwroot -s /sbin/nologin pwftpwwwroot -s /sbin/nologin pwftp
修改密码 #passwd pwftp
chown -R pwftp.pwftp /wwwroot
3. 配置vsftp,vi /etc/vsftpd.conf
将配置文件中”anonymous_enable=YES “改为 “anonymous_enable=NO”
取消如下配置前的注释符号:
local_enable=YES
write_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
编辑/etc/vsftpd.chroot_list文件,将ftp的账户名添加进去,保存退出
4. 修改shell配置
vi编辑/etc/shells,如果该文件里没有/usr/sbin/nologin
5. 重启
#service vsftpd restart
无奈做完这几步仍然登陆不了,报错530 Login incorrect。
查了一下可能的问题,跟/etc/pam.d中一个vsftpd文件有关,如果将这个文件的头尾两句注释带so的文件,则能登陆成功,或者删除该文件,也能登陆成功。
git命令:http://rogerdudler.github.io/git-guide/index.zh.html
常用命令速查:http://blog.csdn.net/ithomer/article/details/7529841
fdisk:http://os.51cto.com/art/201012/240726_all.htm
iptables配置:http://www.cnblogs.com/JemBai/archive/2009/03/19/1416364.html
mysql配置:http://www.cnblogs.com/rayz/archive/2013/04/15/3021373.html
linux find常用命令:
http://www.ruanyifeng.com/blog/2009/10/5_ways_to_search_for_files_using_the_terminal.html
http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments
http://www.oschina.net/translate/15-practical-unix-linux-find-command-examples-part-2?print
http://www.cnblogs.com/peida/archive/2012/11/14/2769248.html
http://blog.chinaunix.net/uid-28455968-id-4117729.html
域名名词解释:
https://www.ezloo.com/2011/04/a_mx_cname_txt_aaaa_ns.html
spf原理:
https://www.renfei.org/blog/introduction-to-spf.html
https://wzyboy.im/post/865.html
linux ssh隧道
ssh -C -f -N -g -L listen_port:DST_Host:DST_port user@Tunnel_Host
ssh -C -f -N -g -R listen_port:DST_Host:DST_port user@Tunnel_Host
ssh -C -f -N -g -D listen_port user@Tunnel_Host
远程操作与端口转发 http://www.ruanyifeng.com/blog/2011/12/ssh_port_forwarding.html
三种类型的ssh隧道 http://codelife.me/blog/2012/12/09/three-types-of-ssh-turneling/
ssh隧道翻墙原理及实现 http://www.pchou.info/linux/2015/11/01/ssh-tunnel.html
ssh端口转发 https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/
ssh隧道简介 http://www.malike.net.cn/blog/2014/10/27/ssh-tunnel-tutorial/
SSH隧道与端口转发及内网穿透 http://blog.creke.net/722.html
ssh隧道解释 http://www.cnblogs.com/fbwfbi/p/3702896.html
linux工具教程 http://linuxtools-rst.readthedocs.io/zh_CN/latest/
linux下12个命令 http://www.oschina.net/translate/command-line-tools-to-monitor-linux-performance
性能问题诊断思路 http://www.51testing.com/html/15/15146915-3708693.html
诊断占用率较高 https://help.aliyun.com/knowledge_detail/41225.html
linux性能优化10个命令 http://www.infoq.com/cn/news/2015/12/linux-performance
lsof http://www.cnblogs.com/mingziday/p/3262292.html
shell在手分析服务器日志不愁 https://segmentfault.com/a/1190000009745139
sed替换用法 https://blog.csdn.net/qq_27664167/article/details/83576845