Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
/LNMPPublic archive

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)

License

NotificationsYou must be signed in to change notification settings

maicong/LNMP

Repository files navigation

中文版使用说明

The version list is available to install

Using YUM packages:

Nginx 1.12/1.13MySQL 5.5/5.6/5.7/8.0MariaDB 5.5/10.0/10.1/10.2/10.3PHP 5.4/5.5/5.6/7.0/7.1/7.2phpMyAdminAdminer

Using source code compile

OpenSSL 1.1.0fNginx 1.13.7PHP 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

# MySQLsystemctl {start,stop,status,restart} mysqld.service# MariaDBsystemctl {start,stop,status,restart} mariadb.service# PHPsystemctl {start,stop,status,restart} php-fpm.service# Nginxsystemctl {start,stop,status,restart,reload} nginx.service

Site management

# listservice vhost list# start(restart), stopservice vhost {start,stop} [<domain>]# add, editservice vhost {add, edit} [<domain>] [<server_name>] [<index_name>] [<rewrite_file>] [<host_subdirectory>]# deleteservice 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 siteservice vhost start# stop all siteservice vhost stop# list all siteservice 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 backupservice vbackup start# delete a new backupservice vbackup del [<file>.tar.gz]# list all backupservice vbackup list

Agreement

The MIT License (MIT)

About

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)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp