编辑/etc/ftpusers文件,该文件为无法登录ftp的用户名单,删除root。记得编辑/etc/vsftpd.conf文件,将write_enable=YES注释去了,否则无法上传文件
编辑/etc/ftpusers文件,该文件为无法登录ftp的用户名单,删除root。记得编辑/etc/vsftpd.conf文件,将write_enable=YES注释去了,否则无法上传文件
不得不说,ubuntu的PPA(Personal Package Archives)这一点确实是比debian好用的地方,有一点Arch的AUR的感觉。在https://launchpad.net/ubuntu/+ppas搜索到需要的软件后,按页面提示add-apt-repository ppa:软件包信息即可安装。若提示命令不存在$ apt-get install python-softw...
一些例如rsync或者scp的命令,需要手动输入密码,导致当写脚本的时候很不方便,因为不好交互,sshpass可以解决这一问题。$ apt install sshpass安装后,在scp之类命令之前加入sshpass -p 密码即可,例如$ sshpass -p maple4ever scp /root/bak.tar.gz root@xxx.950106.xyz:/srv/bak/其实还有...
go build编译出的文件都很大,一个hello world就要2m,我们可以在编译时加上如下参数:go build -ldflags "-s -w" [filename]‘-s’ 相当于strip掉符号表, 但是以后就没办法在gdb里查看行号和文件了。‘-w’ flag to the linker to omit the debug information 告知连接器...
首先git clone一下vundle:$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim如果github速度过慢:$ git clone http://git.xuchen.wang/yachen/Vundle.vim.git ~/.vim/bundle/Vundle.vim