阿里云ftp,git 搭建

2017-03-19  本文已影响137人  Tsnow308

一,linux服务器上安装ftp,

卸载 apt-get remove vsftpd

https://bbs.aliyun.com/read/161851.html

http://jingyan.baidu.com/article/7908e85c988b23af481ad2ae.html

vi /etc/vsftpd.conf

配置ftp文件:

开始!:

Last login: Sun Mar 19 00:08:20 on ttys000

yinxuesongdeiMac:~ insesshou$ ssh root@47.93.33.124

root@47.93.33.124's password:

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-63-generic x86_64)

* Documentation:https://help.ubuntu.com

* Management:https://landscape.canonical.com

* Support:https://ubuntu.com/advantage

Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Sat Mar 18 23:59:27 2017 from 58.61.241.85

root@iZ2zebruzaqhhih6l89cn4Z:~# vi /etc/vsftpd.conf

# This option should be the name of a directory which is empty.Also, the

# directory should not be writable by the ftp user. This directory is used

# as a secure chroot() jail at times vsftpd does not require filesystem

# access.

secure_chroot_dir=/var/run/vsftpd/empty

#

# This string is the name of the PAM service vsftpd will use.

pam_service_name=ftp

#

# This option specifies the location of the RSA certificate to use for SSL

# encrypted connections.

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

ssl_enable=NO

#

# Uncomment this to indicate that vsftpd use a utf8 filesystem.

#utf8_filesystem=YES

#allow_writeable_chroot=YES

#pasv_enable=Yes

#pasv_min_port=40000

#pasv_max_port=40100

#local_root=/home/ftp/

结束!

注意:注释下面的

# files.

#listen_ipv6=YES

设置ftp密码

passwd ftp 密码

:set nu

查看防火墙监听了哪些端口。

netstat -ntl

fileZilla   软件新建站点设置为ftp不安全连接

二,git搭建

http://www.cnblogs.com/dee0912/p/5815267.html

上一篇 下一篇

猜你喜欢

热点阅读