<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 安裝 ``` //CentOS系統可以執行 yum install screen //Debian、Ubuntu系統執行 apt-get install screen ``` ## 安裝前準備 ``` screen -S lnmp ``` ## 全自動安裝 ``` wget http://soft.vpser.net/lnmp/lnmp1.6.tar.gz -cO lnmp1.6.tar.gz && tar zxf lnmp1.6.tar.gz && cd lnmp1.6 && LNMP_Auto="y" DBSelect="2" DB_Root_Password="iampassword" InstallInnodb="y" PHPSelect="9" SelectMalloc="1" ./install.sh lnmp ``` ***** ## 虛擬主機管理 ``` 添加虛擬主機 lnmp vhost add 列出所有虛擬主機 lnmp vhost list 刪除虛擬主機 lnmp vhost del 添加SSL lnmp ssl add ``` ***** ## 數據庫管理 ``` 添加數據庫命令:lnmp database add 編輯數據庫用戶密碼命令:lnmp database edit 刪除數據庫命令:lnmp database del 列出所有數據庫命令:lnmp database list ``` ***** ## 安裝FTP ``` 進入lnmp解壓后的目錄,執行:./pureftpd.sh 增加賬號: lnmp ftp add 卸載 執行:./pureftpd.sh uninstall ``` ## 緩存優化腳本 ``` eAccelerator 安裝:./addons.sh install eaccelerator 卸載執行:./addons.sh uninstall eaccelerator xcache 安裝執行:./addons.sh install xcache 卸載執行:./addons.sh uninstall xcache memcached 安裝執行:./addons.sh install memcached 卸載執行:./addons.sh uninstall memcached imageMagick 安裝執行:./addons.sh install imagemagick 卸載執行:./addons.sh uninstall imagemagick ionCube 安裝執行:./addons.sh install ionCube 卸載執行:./addons.sh uninstall ionCube Redis 安裝執行:./addons.sh install redis 卸載執行:./addons.sh uninstall redis opcache 安裝執行:./addons.sh install opcache 卸載執行:./addons.sh uninstall opcache ``` ***** ## 升級版本 ``` 升級 Nginx 執行 ./upgrade.sh nginx 升級 MySQL 執行 ./upgrade.sh mysql 升級 PHP 執行 ./upgrade.sh php 升級 PHPMyAdmin 執行 ./upgrade.sh phpmyadmin ``` ***** ## 狀態管理 ``` LNMP 1.2+狀態管理: lnmp {start|stop|reload|restart|kill|status} LNMP 1.2+各個程序狀態管理: lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status} Nginx狀態管理:/etc/init.d/nginx {start|stop|reload|restart} MySQL狀態管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status} Memcached狀態管理:/etc/init.d/memcached {start|stop|restart} PHP-FPM狀態管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate} PureFTPd狀態管理: /etc/init.d/pureftpd {start|stop|restart|kill|status} ProFTPd狀態管理: /etc/init.d/proftpd {start|stop|restart|reload} Redis狀態管理: /etc/init.d/redis {start|stop|restart|kill} 重啟LNMP lnmp restart 重啟Nginx /etc/init.d/nginx restart ``` ## 配置修改 ``` nginx -t #測試配置文件是否錯誤 nginx -s reload #重載Nginx ``` ## 各種文件路徑 ### LNMP相關軟件安裝目錄 ``` Nginx 目錄: /usr/local/nginx/ MySQL 目錄 : /usr/local/mysql/ MySQL數據庫所在目錄:/usr/local/mysql/var/ MariaDB 目錄 : /usr/local/mariadb/ MariaDB數據庫所在目錄:/usr/local/mariadb/var/ PHP目錄 : /usr/local/php/ 多PHP版本目錄 : /usr/local/php5.5/ 其他版本前面5.5的版本號換成其他即可 PHPMyAdmin目錄 : /home/wwwroot/default/phpmyadmin/ 強烈建議將此目錄重命名為其不容易猜到的名字。phpmyadmin可自己從官網下載新版替換。 默認網站目錄 : /home/wwwroot/default/ Nginx日志目錄:/home/wwwlogs/ /root/vhost.sh添加的虛擬主機配置文件所在目錄:/usr/local/nginx/conf/vhost/ PureFtpd 目錄:/usr/local/pureftpd/ PureFtpd web管理目錄: /home/wwwroot/default/ftp/ Proftpd 目錄:/usr/local/proftpd/ Redis 目錄:/usr/local/redis/ ``` ### LNMP相關配置文件位置 ``` Nginx主配置(默認虛擬主機)文件:/usr/local/nginx/conf/nginx.conf 添加的虛擬主機配置文件:/usr/local/nginx/conf/vhost/域名.conf MySQL配置文件:/etc/my.cnf PHP配置文件:/usr/local/php/etc/php.ini php-fpm配置文件:/usr/local/php/etc/php-fpm.conf PureFtpd配置文件:1.3及更高版本:/usr/local/pureftpd/etc/pure-ftpd.conf PureFtpd MySQL配置文件:/usr/local/pureftpd/pureftpd-mysql.conf Proftpd配置文件:/usr/local/proftpd/etc/proftpd.conf Proftpd 用戶配置文件:/usr/local/proftpd/etc/vhost/用戶名.conf Redis 配置文件:/usr/local/redis/etc/redis.conf ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看