centos 6.3安裝nginx搭建檔案伺服器

來源:互聯網
上載者:User


centos 6.3安裝nginx搭建檔案伺服器 1、配置CentOS 6.2 第三方yum源(CentOS預設的標準源裡沒有nginx軟體包):Python代碼  yum install wget    #安裝下載工具wget  wget http://www.atomicorp.com/installers/atomic  #下載atomic yum源  sh ./atomic   #安裝 www.2cto.com  yum check-update  #更新yum軟體包   2、安裝nginx:Python代碼  yum install nginx      #安裝nginx,根據提示,輸入Y安裝即可成功安裝  #修改設定檔,這裡省略,主要是將目錄指定到 /home/ngmsw-files  service nginx start    #啟動  chkconfig  nginx on    #設為開機啟動    3、安裝vsftpd:Python代碼  yum install vsftpd # 按y安裝成功  4、建立ftp使用者:   www.2cto.com  Python代碼  useradd -d /home/ngmsw-files -M nmswxt_files    #設定密碼, passwd nmswxt_files # 斷行符號後 輸入2次密碼  #修改/etc/vsftpd/vsftpd.conf    #注釋掉 :  #userlist_enable=YES  #tcp_wrappers=YES  # 使用者指定到目錄  chown nmswxt_files:nmswxt_files /home/nmswxt_files  # 目錄許可權  chmod 777 -R  /home/nmswxt_files  如果還是出現 ftp使用者無許可權新增檔案或者目錄的情況,參考下面: Python代碼  #查看SELinux設定  getsebool -a|grep ftp  www.2cto.com  #etsebool使用-P參數,無需每次開機都輸入這個命令  setsebool -P ftp_home_dir 1    作者 misswuyang

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.