强⼤的⼀键部署⽹站架构⼯具Oneinstack
Oneinstack基本使⽤
Oneinstack
1、Oneinstack的特性:
持续不断更新,⽀持交互、⽆⼈值守安装
源码编译安装,⼤多数源码是最新stable版,并从官⽅⽹址下载
提供多个数据库版本(MySQL-8.0, MySQL-5.7, MySQL-5.6, MySQL-5.5, MariaDB-10.4,MariaDB-10.3,MariaDB-10.2,MariaDB-5.5,Percona-8.0, Percona-5.7, Percona-5.6, Percona-5.5,AliSQL-5.6,PostgreSQL, MongoDB)
提供多个PHP版本(PHP-7.4,PHP-7.3,PHP-7.2,PHP-7.1,PHP-7.0,PHP-5.6, PHP-5.5,PHP-5.4,PHP-5.3)
提供Nginx、Tengine、OpenResty和nginx waf功能
提供多个Apache版本(Apache-2.4,Apache-2.2)
提供多个Tomcat版本(Tomcat-9,Tomcat-8,Tomcat-7,Tomcat-6)
提供多个JDK版本(JDK-11.0,JDK-1.8,JDK-1.7,JDK-1.6)
根据⾃⼰需求安装PHP缓存加速器,提供ZendOPcache、xcache、apcu、eAccelerator。及php加解密⼯具ionCube、ZendGuardLoader
根据⾃⼰需求安装Pureftpd、phpMyAdmin
根据⾃⼰需求安装Memcached、Redis
jemalloc优化MySQL、Nginx
提供添加虚拟主机脚本
提供Nginx/Tengine/OpenResty/Apache、PHP、Redis、Memcached、phpMyAdmin升级脚本
提供本地备、远程(rsync)、阿⾥云OSS、腾讯云COS、⼜拍云、七⽜云、亚马逊S3和Dropbox备份脚本
提供CentOS 6、7下HHVM安装
2、Oneinstack开源软件版本
在之前⼏乎隔⼀段时间部署LNMP/LAMP⽹站架构,有时候nginx mysql php需要装半个⼩时,尤其是源码编译安装更加长久,在安装的过程中稍有不留意就会配错导致服务⽹站⽆法正常运⾏。 后来⾃⼰慢慢开始写⼀键安装部署脚本如下:
这个脚本也是曾经费烟,费精⼒,费时间,加上思路构想,加上编写,在测试⼀共下来浪费了太多的时间,缺点是还不能灵活性的选择软件版本。放在不同的操作系统中出现不稳定现象导致最后部署失败的局⾯也真是让⼈头疼。 今天介绍的这个⼯具是⼀个强⼤的shell脚本。 部署如下:
3、Oneinstack的部署安装
推荐⼜拍云CDN下载,包含源码
mirrors.linuxeye/
mirrors.linuxeye/ #beta版本
国外线路(Linode Fremont,10M/s),包含源码
mirrors.linuxeye/
Dropbox,包含源码
www.dropbox/s/iampc7prd9y7cqf/
sourceforge,包含源码
downloads.sourceforge/project/oneinstack/
欧洲线路,包含源码
/linuxeye/
不包含源码,建议仅国外主机下载
mirrors.linuxeye/
3.1、下载oneinstack
[root@yankerp ~]# wget mirrors.linuxeye/
--2020-06-07 09:34:44-- mirrors.linuxeye/
Resolving mirrors.linuxeye (mirrors.linuxeye)... 223.85.20.154, 183.236.31.250, 2409:8c54:b000:704:4cb3:fbff:fe07:e72d, ...
Connecting to mirrors.linuxeye (mirrors.linuxeye)|223.85.20.154|:80... connected.
HTTP request sent, 200 OK
Length: 325082415 (310M)[application/octet-stream]
Saving to: ‘’
100%[===================================================================================================================== ========================>] 325,082,415 2.27MB/s in 3m 50s
2020-06-07 09:38:35 (1.35 MB/s) - ‘’ saved [325082415/325082415]
3.2、解压安装
[root@yankerp ~]# tar zxf
[root@yankerp ~]# cd oneinstack
[root@yankerp oneinstack]# ll
total 264
-rwxr-xr-x. 1 root root 5865 May 30 23:31 addons.sh
-rwxr-xr-x. 1 root root 24795 May 30 23:31 backup_setup.sh
-rwxr-xr-x. 1 root root 11347 May 30 23:31 backup.sh
drwxr-xr-x. 2 root root 4096 May 30 23:31 config
drwxr-xr-x. 2 root root 4096 May 30 23:31 include
drwxr-xr-x. 2 root root 4096 May 30 23:31 init.d
-rwxr-xr-x. 1 root root 50927 May 30 23:31 install.sh
-rw-r--r--. 1 root root 11358 May 30 23:31 LICENSE
-rw-r--r--. 1 root root 2569 May 30 23:f
-rwxr-xr-x. 1 root root 7760 May 30 23:31 pureftpd_vhost.sh
-rw-r--r--. 1 root root 4936 May 30 23:31 README.md
-rwxr-xr-x. 1 root root 4938 May 30 23:31 reset_db_root_password.sh
drwxr-xr-x. 2 root root 4096 May 30 23:31 src
drwxr-xr-x. 2 root root 4096 May 30 23:31 tools
-rwxr-xr-x. 1 root root 30445 May 30 23:31 uninstall.sh
-rwxr-xr-x. 1 root root 5782 May 30 23:31 upgrade.sh
-rw-r--r--. 1 root root 2044 May 30 23:
-rwxr-xr-x. 1 root root 53382 May 30 23:31 vhost.sh
[root@yankerp oneinstack]#
3.3、运⾏install.sh
Please input SSH port(Default: 22):
Do you want to enable iptables? [y/n]: n
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) 1
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) 3
ssh工具手机版Please select tomcat server:
1. Install Tomcat-9
2. Install Tomcat-8
3. Install Tomcat-7
4. Install Tomcat-6
5. Do not install
Please input a number:(Default 5 press Enter) 5
Do you want to install Database? [y/n]: y
Please select a version of the Database:
1. Install MySQL-8.0
2. Install MySQL-5.7
3. Install MySQL-5.6
4. Install MySQL-
5.5
5. Install MariaDB-10.4
6. Install MariaDB-10.3
7. Install MariaDB-10.2
8. Install MariaDB-5.5
9. Install Percona-8.0
10. Install Percona-5.7
11. Install Percona-5.6
12. Install Percona-5.5
13. Install AliSQL-5.6
14. Install PostgreSQL
15. Install MongoDB
Please input a number:(Default 2 press Enter) 2
Please input the root password of MySQL(default: 5vVS1ruk): pwd123
Please choose installation of the database:
1. Install database from binary package.
2. Install database from source package.
Please input a number:(Default 1 press Enter) 1
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
8. Install php-7.3
9. Install php-7.4
Please input a number:(Default 7 press Enter) 5
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
3. Install APCU
Please input a number:(Default 1 press Enter) 1
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) 0 Do you want to install Pure-FTPd? [y/n]: n
Do you want to install phpMyAdmin? [y/n]: y
Do you want to install redis-server? [y/n]: n
Do you want to install memcached-server? [y/n]: n
Do you want to install HHVM? [y/n]: n
官⽹解释图:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论