Centos6.3 install nginx to build a file server

Source: Internet
Author: User
Centos6.3 install nginx to build a file server 1. configure CentOS6.2 third-party yum source (no nginx software package exists in CentOS's default standard source): Python code yuminstallwget # install the download tool wgetwgethttp: // www.atomicorp.com/install...
Install nginx in centos 6.3 to build a file server 1. configure a third-party yum source in CentOS 6.2 (no nginx software package exists in the default standard source in CentOS): Python code yum install wget # install the download tool wget http://www.atomicorp.com/installers/atomic # Download the atomic yum source sh. /atomic # install www.2cto.com yum check-update # update yum Software Package 2. install nginx: Python code yum install nginx # install nginx, as prompted, enter Y to install it. # Modify the configuration file, which is omitted here, it is mainly to specify the directory to/home/ngmsw-files service nginx start # start chkconfig nginx on # set to start at startup 3. install vsftpd: python code yum install vsftpd # install by y successfully 4. create an ftp User: www.2cto.com Python code useradd-d/home/ngmsw-files-M nmswxt_files # set the password, passwd nmswxt_files # Press enter and enter the password twice # Modify/etc/vsftpd. conf # Comment out: # userlist_enable = YES # tcp_wrappers = YES # chown nmswxt_files: nmswxt_files/home/nmswxt_files # directory permission chmod 777-R/home/nmswxt_files if the ftp user still does not have permission to add files or directories, refer to the following: python code # View SELinux settings getsebool-a | grep ftp www.2cto.com # etsebool use the-P parameter, you do not need to enter this command every time you boot setsebool-P ftp_home_dir 1 author misswuyang

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.