前言
发送图文消息时间点,访问量大,请求并发多,业务web机处理不过来,新增加了2台web机应对。搞过Linux软件安装的都知道,各种库的依赖会把人搞崩溃,尤其是服务器不能访问外网的情况下,会非常的蛋疼。以前安装LNMP开发环境都是单个分别源码编译安装,安装过程因环境的问题,会碰到各种奇奇怪怪的问题,解决这些问题需要花些力气。以前只知道Windows才有集成开发包,真是井底之蛙!来到新东家之后,才知道Linux也有这样的集成包,线上web机都是使用集成包安装的,已经跑了几年,一直都很稳定。使用集成包安装可以大大减少搭建环境的时间,只需要花点时间在服务配置上。如果是为了学习研究,建议还是不要使用集成包安装。集成包最好到官方网站上下载,最好不要到那种广告非常多的下载站下载,现在无良厂商太多,下载到有木马或者后门的就不好了,毕竟线上服务器不是闹着完的!

 

Bitnami
Bitnami是一个开源项目,它的目的旨在简化高质量开源服务的安装,开源服务套件中包含启动此服务相关的各种软件,只要安装好了服务即可使用。大部分开源服务套件都有,套件支持三大主流操作系统。在新东家第一次发现一个nginx守护进程有20多兆,以为用了啥黑科技,原来使用了这个玩意安装的,各种依赖库都装一起了,所以可执行文件会比较大。

 

Bitnami安装LNMP开发环境

下载
https://bitnami.com/stack/nginx/installer

安装
1 root权限安装
2 安装包添加可执行权限
chmod u+x ./bitnami-nginxstack-1.8.0-0-linux-x64-installer.run
3 执行安装,按照提示操作即可

 1 [root@wx_web07 ~]# ./bitnami-nginxstack-1.8.0-0-linux-x64-installer.run 
 2 ----------------------------------------------------------------------------
 3 Welcome to the Bitnami Nginx Stack Setup Wizard.
 4 
 5 ----------------------------------------------------------------------------
 6 Select the components you want to install; clear the components you do not want 
 7 to install. Click Next when you are ready to continue.
 8 
 9 Varnish [Y/n] :n
10 
11 PhpMyAdmin : Y (Cannot be edited)
12 
13 Is the selection above correct? [Y/n]: y
14 
15 ----------------------------------------------------------------------------
16 Installation folder
17 
18 Please, choose a folder to install Bitnami Nginx Stack
19 
20 Select a folder [/opt/nginxstack-1.8.0-0]: /u01/server
21 
22 ----------------------------------------------------------------------------
23 Create MySQL 'root' Account
24 
25 Bitnami Nginx Stack database root user creation
26 
27 Password :
28 Re-enter :
29 ----------------------------------------------------------------------------
30 Setup is now ready to begin installing Bitnami Nginx Stack on your computer.
31 
32 Do you want to continue? [Y/n]: y
33 
34 ----------------------------------------------------------------------------
35 Please wait while Setup installs Bitnami Nginx Stack on your computer.
36 
37  Installing
38  0% ______________ 50% ______________ 100%
39  #########################################
40 
41 ----------------------------------------------------------------------------
42 Setup has finished installing Bitnami Nginx Stack on your computer.
43 
44 Launch Bitnami Nginx Stack [Y/n]: n
View Code

相关文章:

  • 2021-04-27
  • 2022-12-23
  • 2021-06-20
  • 2021-04-01
  • 2021-06-07
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-11-22
  • 2021-12-09
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案