Linux伺服器部署apache+php

aba66發表於2021-10-20

映象地址

https://oneinstack.com

下載安裝包

wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz  //下載安裝包

檢視檔案

ls -l  //檢視下載的檔案

解壓壓縮檔案

tar -xzvf oneinstack-full.tar.gz   //解壓壓縮包

cd到壓縮檔案下

cd oneinstack  //cd到解壓的檔案下

檢視該檔案下的所有檔案

ll //檢視該檔案下的檔案

執行安裝命令

./install.sh   //執行安裝命令

詢問介面

Please input SSH port(Default: 22)    //詢問介面(回車確定)

是否安裝防火牆

Do you want to enable iptables?   //是否安裝防火牆 (否)

安裝服務

Do you want to install Web server? [y/n]: y 

選擇更多

Please select Nginx server:
    1. Install Nginx
    2. Install Tengine
    3. Install OpenResty
    4. Do not install
Please input a number:(Default 1 press Enter) 4

選擇apache (apache為4)

Please input a number:(Default 1 press Enter) 4
···
Do you want to install Apache? [y/n]: y

Please select Apache mode:
    1. php-fpm
    2. mod_php
Please input a number:(Default 1 press Enter) 

Please select Apache MPM:
    1. event
    2. prefork
    3. worker
Please input a number:(Default 1 press Enter) 

Please select tomcat server:
    1. Install Tomcat-10
    2. Install Tomcat-9
    3. Install Tomcat-8
    4. Install Tomcat-7
    5. Do not install
Please input a number:(Default 5 press Enter) 5

Please input a number:(Default 1 press Enter) 

Please select Apache MPM:
    1. event
    2. prefork
    3. worker
Please input a number:(Default 1 press Enter) 

Please select tomcat server:
    1. Install Tomcat-10
    2. Install Tomcat-9
    3. Install Tomcat-8
    4. Install Tomcat-7
    5. Do not install
Please input a number:(Default 5 press Enter) 5

Do you want to install Database? [y/n]: n

Do you want to install PHP? [y/n]: y

Please select a version of the PHP:
     1. Install php-5.3
     2. Install php-5.4
     3. Install php-5.5
     4. Install php-5.6
     5. Install php-7.0
     6. Install php-7.1
     7. Install php-7.2
     8. Install php-7.3
     9. Install php-7.4
    10. Install php-8.0
Please input a number:(Default 7 press Enter) 8

Do you want to install opcode cache of the PHP? [y/n]: n

Please select PHP extensions:
     0. Do not install
     1. Install zendguardloader(PHP<=5.6)
     2. Install ioncube
     3. Install sourceguardian(PHP<=7.2)
     4. Install imagick
     5. Install gmagick
     6. Install fileinfo
     7. Install imap
     8. Install ldap
     9. Install phalcon(PHP>=5.5)
    10. Install yaf(PHP>=7.0)
    11. Install redis
    12. Install memcached
    13. Install memcache
    14. Install mongodb
    15. Install swoole
    16. Install xdebug(PHP>=5.5)
Please input numbers:(Default '4 11 12' press Enter) 
本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章