linux配置FTP服务并通过ngnix下载
scp root@192.168.6.153:/data/cache5/rcms_software/nginx/nginx-0.7.67.tar.gz .
tar zxvf nginx-0.7.67.tar.gz cd nginx-0.7.67 解压后安装./configure make && make install将环境变量加入/etc/profile的 path中 vi /etc/profile /usr/local/nginx/sbin source /etc/profile 修改nginx配置文件
vi /usr/local/nginx/conf/nginx.conf写入以下配置worker_processes 2;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #default_type text/plain; sendfile on; keepalive_timeout 65; #gzip on; server { listen 80; location / { root /data/cache1/rcms; } }}启动nginx