maicong/LNMP
Fork: 91 Star: 255 (更新于 2024-12-21 00:19:55)
license: MIT
Language: Shell .
Support: Nginx 1.12/1.13 + MySQL 5.5/5.6/5.7/8.0(MariaDB 5.5/10.0/10.1/10.2/10.3) + PHP 5.4/5.5/5.6/7.0/7.1/7.2 + phpMyAdmin(Adminer)
最后发布版本: v3.0.0 ( 2018-01-31 10:47:08)
CentOS 7 Install LNMP Environment
The version list is available to install
Using YUM packages:
Nginx 1.12/1.13
MySQL 5.5/5.6/5.7/8.0
MariaDB 5.5/10.0/10.1/10.2/10.3
PHP 5.4/5.5/5.6/7.0/7.1/7.2
phpMyAdmin
Adminer
Using source code compile
OpenSSL 1.1.0f
Nginx 1.13.7
PHP 7.2.0
Installing
Using YUM packages:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/maicong/LNMP/master/lnmp.sh)"
Using source code compile:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/maicong/LNMP/master/source.sh)"
Using
Service management
# MySQL
systemctl {start,stop,status,restart} mysqld.service
# MariaDB
systemctl {start,stop,status,restart} mariadb.service
# PHP
systemctl {start,stop,status,restart} php-fpm.service
# Nginx
systemctl {start,stop,status,restart,reload} nginx.service
Site management
# list
service vhost list
# start(restart), stop
service vhost {start,stop} [<domain>]
# add, edit
service vhost {add, edit} [<domain>] [<server_name>] [<index_name>] [<rewrite_file>] [<host_subdirectory>]
# delete
service vhost del [<domain>]
Parameter declaration
-
start
start|restart -
stop
stop -
add
add -
edit
edit -
del
delete -
<domain>
site sign, default:domain
-
<server_name>
domain list, use,
partition, default:domain.com,www.domain.com
-
<index_name>
the file of home page, take effect in proper order, default:index.html,index.htm,index.php
-
<rewrite_file>
rewrite rule file, save in/etc/nginx/rewrite/
, default:nomal.conf
-
<host_subdirectory>
whether support subdirectory bind,on
oroff
, default:off
Example
# start or restart all site
service vhost start
# stop all site
service vhost stop
# list all site
service vhost list
# add a sign of `mysite`, domain list is `mysite.com`
service vhost add mysite mysite.com
# start or restart the site which is sign `mysite`
service vhost start mysite
# stop the site which is sign `mysite`
service vhost stop mysite
# edit the site which is sign `mysite`
service vhost edit mysite
# delete the site which is sign `mysite`
service vhost del mysite
Backup
# create a new backup
service vbackup start
# delete a new backup
service vbackup del [<file>.tar.gz]
# list all backup
service vbackup list
Agreement
The MIT License (MIT)
最近版本更新:(数据更新于 2024-12-11 23:31:08)
2018-01-31 10:47:08 v3.0.0
2017-12-12 17:12:11 LNMP3.0.0-beta2
2016-10-27 11:42:44 LNMP3.0.0-beta1
2016-02-23 16:14:28 v2.0.0
2016-02-22 17:50:22 v1.0.0
主题(topics):
centos7, lnmp, mariadb, mysql, nginx, php
maicong/LNMP同语言 Shell最近更新仓库
2024-12-23 00:13:50 j-hc/revanced-magisk-module
2024-12-19 20:39:10 chenzyadb/CuprumTurbo-Scheduler
2024-12-17 15:17:35 morytyann/OpenWrt-mihomo
2024-12-11 20:57:35 RROrg/rr
2024-12-09 01:05:08 rustdesk/rustdesk-server-pro
2024-12-03 19:14:14 dockur/windows