MIT License

项目介绍

maicong/LNMP 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 MIT License 许可证,目前获得 250 个 Star、85 次 Fork。

仓库全名
maicong/LNMP
开源许可证
MIT License
Star 数
250
Fork 数
85

README 摘要

CentOS 7 Install LNMP Environment ======= 中文版使用说明 The version list is available to install Using YUM packages: Using source code compile Installing Using YUM packages: Using source code compile: Using Service management Site management Parameter declaration start start|restart stop stop add add edit edit del delete site sign, default: domain domain list, use , partition, default: domain.com,www.domain.com the file…

完整内容见 GitHub 原始 README 或本页 。

常见问题

LNMP 用什么语言开发?

主要使用 Shell 编写,采用 MIT License 许可证,目前有 250 个 Star。

LNMP 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 LNMP 的源码?

可以直接克隆仓库:git clone https://github.com/maicong/LNMP.git,默认分支为 master;安装与运行步骤见仓库 README。

LNMP 最近还在维护吗?

仓库最近一次更新为 2018年4月20日,当前没有未关闭的 Issue;Star 数为 250,可作为社区活跃度的参考。

关于

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)

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
421
价值分
175
活跃状态
归档

语言占比

PHP
Shell

Release

贡献者

README

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 or off, 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)

评论

暂无评论