LNMPA一键安装

CentOS 6.8 x64 最小化安装

###安装###

yum -y install wget # 要确保yum能正常安装的,因为安装LNMP需要用到yum。

wget https://www.360docs.net/doc/a86084470.html,/lnmp/lnmp1.5-full.tar.gz

tar xf lnmp1.5-full.tar.gz
cd lnmp1.5-full
./install.sh lnmpa # 需要联网
--------------------------------------------------------------------

+------------------------------------------------------------------------+
| LNMP V1.5 for CentOS Linux Server, Written by Licess |
+------------------------------------------------------------------------+
| A tool to auto-compile & install LNMP/LNMPA/LAMP on Linux |
+------------------------------------------------------------------------+
| For more information please visit https://https://www.360docs.net/doc/a86084470.html, |
+------------------------------------------------------------------------+
You have 10 options for your DataBase install.
1: Install MySQL 5.1.73
2: Install MySQL 5.5.60 (Default)
3: Install MySQL 5.6.40
4: Install MySQL 5.7.22
5: Install MySQL 8.0.11
6: Install MariaDB 5.5.60
7: Install MariaDB 10.0.35
8: Install MariaDB 10.1.33
9: Install MariaDB 10.2.14
0: DO NOT Install MySQL/MariaDB
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9 or 0): 0
Do not install MySQL/MariaDB!
===========================
You have 8 options for your PHP install.
1: Install PHP 5.2.17
2: Install PHP 5.3.29
3: Install PHP 5.4.45
4: Install PHP 5.5.38
5: Install PHP 5.6.36 (Default)
6: Install PHP 7.0.30
7: Install PHP 7.1.18
8: Install PHP 7.2.6
Enter your choice (1, 2, 3, 4, 5, 6, 7 or 8): 8
You have 3 options for your Memory Allocator install.
1: Don't install Memory Allocator. (Default)
2: Install Jemalloc
3: Install TCMalloc
Enter your choice (1, 2 or 3): 2
You will install JeMalloc
===========================
Please enter Administrator Email Address: xu.yaosheng@https://www.360docs.net/doc/a86084470.html,
===========================
Server Administrator Email: xu.yaosheng@https://www.360docs.net/doc/a86084470.html,
===========================
===========================
You have 2 options for your Apache install.
1: Install Apache 2.2.34
2: Install Apache 2.4.33 (Default)
Enter your choice (1 or 2): 2

Press any key to install...or Press Ctrl+c to cancel


--------------------------------------------------------------------



###添加网站(虚拟主机)###

lnmp vhost add

+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://https://www.360docs.net/doc/a86084470.html, |
+-------------------------------------------+
Please enter domain(example: https://www.360docs.net/doc/a86084470.html,): https://www.360docs.net/doc/a86084470.html,
Your domain: https://www.360docs.net/doc/a86084470.html,
Enter more domain name(example: https://www.360docs.net/doc/a86084470.html, *https://www.360docs.net/doc/a86084470.html,): https://www.360docs.net/doc/a86084470.html,
domain list: https://www.360docs.net/doc/a86084470.html,
Please enter the directory for the domain: https://www.360docs.net/doc/a86084470.html,
Default directory: /home/wwwroot/https://www.360docs.net/doc/a86084470.html,: /opt/web/https://www.360docs.net/doc/a86084470.html,
Virtual Host Directory: /opt/web/https://www.360docs.net/doc/a86084470.html,
Allow access log? (y

/n) y
Enter access log filename(Default:https://www.360docs.net/doc/a86084470.html,.log):
You access log filename: https://www.360docs.net/doc/a86084470.html,.log
Please enter Administrator Email Address: admin@https://www.360docs.net/doc/a86084470.html,
Server Administrator Email:admin@https://www.360docs.net/doc/a86084470.html,
Add SSL Certificate (y/n) y
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 1
Please enter full path to SSL Certificate file: /usr/local/nginx/conf/key/https://www.360docs.net/doc/a86084470.html,.crt
Please enter full path to SSL Certificate Key file: /usr/local/nginx/conf/key/https://www.360docs.net/doc/a86084470.html,.key

Press any key to start create virtul host...

Create Virtul Host directory......
set permissions of Virtual Host directory......
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

Reload Nginx......
Test Apache configure file...
test apache configure... Syntax OK
done
Restart Apache...
graceful apache... done
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
================================================
Virtualhost infomation:
Your domain: https://www.360docs.net/doc/a86084470.html,
Home Directory: /opt/web/https://www.360docs.net/doc/a86084470.html,
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
=>Certificate file
================================================



###已存在虚拟主机添加ssl证书开启https###




###列出网站(虚拟主机)###

lnmp vhost list

+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://https://www.360docs.net/doc/a86084470.html, |
+-------------------------------------------+
Nginx Virtualhost list:
https://www.360docs.net/doc/a86084470.html,
Apache Virtualhost list:
https://www.360docs.net/doc/a86084470.html,



###删除网站(虚拟主机)###

lnmp vhost del

+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://https://www.360docs.net/doc/a86084470.html, |
+-------------------------------------------+
=======================================
Current Virtualhost:
Nginx Virtualhost list:
https://www.360docs.net/doc/a86084470.html,
Apache Virtualhost list:
https://www.360docs.net/doc/a86084470.html,
=======================================
Please enter domain you want to delete: https://www.360docs.net/doc/a86084470.html,
========================================================
Domain: https://www.360docs.net/doc/a86084470.html, has been deleted.
Website files will not be deleted for security reasons.
You need to manually delete the website files.
========================================================

相关文档
最新文档