설치가 vsftpd에 설치되어 있는지 확인하십시오
yum -y install vsftpd // 安装
rpm -qa | grep vsftpd // 查看是否已经安装
2. vsftpd를 구성 파일
성공적으로 설치 한 후, /etc/vsftpd/vsftpd.conf 파일 파일은 vsftpd를 구성 파일이
이러한 구성으로, 성공적으로 로그인 한 후 액세스 파일
3. 추가 사용자
useradd ftpadmin // 添加用户
passwd ftpadmin // 为用户设置密码,输入两次
4.vsftpd 일반적인 작업은 명령
service vsftpd start // 启动Vsftpd服务
service vsftpd stop // 停止Vsftpd服务的命令
service vsftpd restart // 重新启动Vsftpd服务
service vsftpd status // 检查Vsftpd服务状态
chkconfig vsftpd on // 设置开机启动vsftpd服务
5. 설치의 nginx
먼저 종속성을 설치
yum install gcc-c++ // 安装gcc
yum install -y pcre pcre-devel // PCRE pcre-devel 安装
yum install -y zlib zlib-devel // zlib 安装
yum install -y openssl openssl-devel // OpenSSL 安装
그런 다음에 .gz 패키지의 nginx를 다운로드하는 공식 웹 사이트로 이동
다운로드 : https://nginx.org/en/download.html
tar -zxvf nginx-1.12.1.tar.gz // 解压nginx
cd nginx-1.12.1
make
make install // 编译安装
6. 구성 nginx를 (필요에 따라 구성된)
일반적으로 기본 경로 /usr/local/nginx/conf/nginx.conf 설치
server {
listen 80; # 监听端口
server_name localhost; # 请求地址
index index.html index.htm index.php;
location /images {
root /home/ftpfile/; # vsftpd文件路径
autoindex on;
}
}
7.nginx 일반적으로 사용되는 명령
whereis nginx // 查找nginx安装路径
cd /usr/local/nginx/sbin/
./nginx (启动)
./nginx -s stop (停止)
./nginx -s quit (关闭)
./nginx -s reload (重启)
8. 구성 성공적인 방문 결과