镜像地址
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 installPlease 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]: yPlease select Apache mode: 1. PHP-fpm 2. mod_PHPPlease input a number:(Default 1 press Enter) Please select Apache MPM: 1. event 2. prefork 3. workerPlease 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 installPlease input a number:(Default 5 press Enter) 5Please input a number:(Default 1 press Enter) Please select Apache MPM: 1. event 2. prefork 3. workerPlease 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 installPlease input a number:(Default 5 press Enter) 5Do you want to install Database? [y/n]: nDo you want to install PHP? [y/n]: yPlease 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.0Please input a number:(Default 7 press Enter) 8Do you want to install opcode cache of the PHP? [y/n]: nPlease 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)
推荐学习:《linux视频教程》 总结
以上是内存溢出为你收集整理的一文讲解Linux服务器如何部署apache和php全部内容,希望文章能够帮你解决一文讲解Linux服务器如何部署apache和php所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)