linux下一些常見的配置和命令


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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章