Linux 服务器上部署网站

linux

1,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

2,linux服务器上安装tomcat,

http://www.cnblogs.com/xdp-gacl/p/4097608.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • vsftpd.conf 部分:文件格式(5)索引 返回主要内容 名称 vsftpd.conf - vsftpd的配...
    张龙象阅读 2,351评论 0 1
  • ftp 文件传输协议 跨平台 上传下载文件 vsftpd 工具:非常安全的文件传输协议;默认的命令端口21号,数据...
    柒夏锦阅读 4,109评论 1 9
  • 环境mint17.2 1.安装 dpkg -l|grep ftp sudo apt-get install vsf...
    alexbo阅读 780评论 0 0
  • 下面,就给大家介绍这些CentOS常用命令。 一:使用CentOS常用命令查看cpu more/proc/cpui...
    guiwuzhe阅读 2,543评论 1 25
  • 清晨,走在去坐公车的路上。心情感觉有一丝澄净。空气中弥漫的气息是清新的,大自然的馈赠让人感觉精神抖擞。又是新的一天...
    梵翊阅读 207评论 0 0