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
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)"
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|restartstop
stopadd
addedit
editdel
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
The MIT License (MIT)
lnmp's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.