Linux安装LAMP oneinstack环境包

1.选择阿里云镜像  
[root@lcc /]# wget  https://mirrors.corelink.io/LinuxEye/oneinstack-full.tar.gz
2.解压  
[root@lcc /]#tar xzf oneinstack-full.tar.gz 
[root@lcc /]#cd oneinstack  
[root@lcc oneinstack]# screen -S oneinstack  
3.开始安装  
[root@lcc oneinstack]# ./install.sh 


#######################################################################  
#       OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+      #  
#       For more information please visit http://oneinstack.com       #  
#######################################################################  
4.选择端口  
Please input SSH port(Default: 22): 
5.选择服务器  
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) 


Please select Apache server:  
       1. Install Apache-2.4  
       2. Install Apache-2.2  
       3. Do not install  
Please input a number:(Default 3 press Enter) 


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


Do you want to install Database? [y/n]: y  
6.选择数据库  
Please select a version of the Database:  
       1. Install MySQL-5.7  
       2. Install MySQL-5.6  
       3. Install MySQL-5.5  
       4. Install MariaDB-10.1  
       5. Install MariaDB-10.0  
       6. Install MariaDB-5.5  
       7. Install Percona-5.7  
       8. Install Percona-5.6  
       9. Install Percona-5.5  
Please input a number:(Default 2 press Enter) 
Please input the root password of database: ***********  
7.选择PHP版本  
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  
Please input a number:(Default 3 press Enter) 
8.选择OP缓存类型  
Do you want to install opcode cache of the PHP? [y/n]: y  
Please select a opcode cache of the PHP:  
       1. Install Zend OPcache  
       2. Install XCache  
       3. Install APCU  
Please input a number:(Default 1 press Enter) 


Do you want to install ionCube? [y/n]: n  
9.选择图片处理  
Do you want to install ImageMagick or GraphicsMagick? [y/n]: y  
Please select ImageMagick or GraphicsMagick:  
       1. Install ImageMagick  
       2. Install GraphicsMagick  
Please input a number:(Default 1 press Enter) 


Do you want to install Pure-FTPd? [y/n]: y  


Do you want to install phpMyAdmin? [y/n]: y  
10.选择redis  
Do you want to install redis? [y/n]: y  
11.选择memcached  
Do you want to install memcached? [y/n]: y  


Do you want to use jemalloc or tcmalloc optimize Database and Web server? [y/n]: n  


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


接着就是自动安装了。  
安转完成后重启服务器。  
查看状态。  

[root@lcc /]# service nginx status 
nginx (pid  1858) is running... 
[root@lcc /]# service mysqld status 
 SUCCESS! MySQL running (1773) 
[root@lcc /]# service php-fpm status 
php-fpm (pid 881) is running... 
[root@lcc /]# service memcached status 
memcached (pid 896) is running... 
[root@lcc /]# service redis-server status 
redis-server (pid 1880) is running... 


这个卸载的话比较简单,直接在oneinstack目录下./uninstall.sh即可  

你可能感兴趣的:(Linux安装LAMP oneinstack环境包)