一、概述
### --- 地址
~~~ 一键安装包地址:https://lnmp.org/
~~~ 下载最新稳定版本:软件数量比较全,版本比较新
~~~ #下载版:
~~~ 里边不包含任何的源码软件包,只包含配置文件;必须连接网络才可以使用部署
~~~ #完整版:
~~~ 里面包含所有的源码软件包,不连接互联网,使用本地yum源就可以部署
~~~ 适用于个人小网站,单台服务器,集群是不合适的。
一、部署安装:环境准备
### --- 下载lnmp1.7或者1.5一键安装包
wget http://soft.vpser.net/lnmp/lnmp1.7-full.tar.gz
wget http://soft.vpser.net/lnmp/lnmp1.5-full.tar.gz
### --- 将lnmp1.7软件包上传到服务器上
### --- 可以选择安装那个版本:比如想安装lamp或者lnmp都可以自己去定义
lnmp1.7-full.tar.gz
### --- 一键执行命令
wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7 && ./install.sh lnmp
二、部署安装
### --- 部署安装LNMP
[root@server11 ~]# tar -zxvf lnmp1.7-full.tar.gz
[root@server11 ~]# cd lnmp1.7-full/
[root@server11 lnmp1.7-full]# ./install.sh // 默认是lnmp
~~~ # OR
[root@server11 lnmp1.7-full]# ./install.sh lamp
~~~ # OR
[root@server11 lnmp1.7-full]# ./install.sh lnmp
~~~ # OR
[root@server11 lnmp1.7-full]# ./install.sh lnmpa
+------------------------------------------------------------------------+
| LNMP V1.7 for CentOS Linux Server, Written by Licess |
+------------------------------------------------------------------------+
| A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux |
+------------------------------------------------------------------------+
| For more information please visit https://lnmp.org |
+------------------------------------------------------------------------+
You have 11 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.62 (Default) // 默认
3: Install MySQL 5.6.48
4: Install MySQL 5.7.30
5: Install MySQL 8.0.20
6: Install MariaDB 5.5.68
7: Install MariaDB 10.1.45
8: Install MariaDB 10.2.32
9: Install MariaDB 10.3.23
10: Install MariaDB 10.4.13
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 0): // 默认是5.5,直接回车默认
No input,You will install MySQL 5.5.62
===========================
Please setup root password of MySQL.
Please enter: 123456
MySQL root passwo