对于LNMP(国外习惯称之为LEMP),是很多站长非常喜欢Web套件。今天介绍的这款CentminMod,是由George Liu (eva2000)开发的一款Shell界面的LNMP脚本,通过这个脚本可以实现自动安装优化的Nginx, MariaDB(注:MySQL数据库基本可无痛迁移到MariaDB), PHP-FPM以及CSF防火墙的功能,另外该脚本还实验性地加入了LetsEncrypt SSL以及Nginx Brotli Compression的功能。另外,脚本里面还可以实现对于Nginx和PHP的升级操作,可以说功能十分全面
正如其名字Centmin,这款套件仅支持CentOS(6和7),不支持Debian系列
CentminMod包含的软件及功能(引自官方)
Nginx 1.11.1 (https / SPDY SSL / HTTP/2 SSL + ngx_pagespeed + Lua/LuaJIT support)
PHP-FPM 5.4.45 + Zend OpCache installed & support for PHP 5.3, 5.4, 5.5, 5.6, and PHP 7.0
MariaDB 10.0.x MySQL performance fork (MariaDB 10.1.x soon)
PHP opcode cache: Zend OpCache 7.0.5+, APC Cache 3.13, Xcache 3.2.0
Memcached Server 1.4.25 + Memcache 3.0.8 PHP Extension
Libmemcached 1.0.18 + Memcached 2.2.0 PHP Extension
Multi-threaded compression: pigz, pbzip2, lbzip2, plzip, p7zip (optional)
CSF Firewall
Pure-FTPD Virtual FTP User support
CentminMod的安装与使用
通过Curl安装
curl -O https://centminmod.com/installer.sh && chmod 0700 installer.sh && bash installer.sh
CentminMod的功能选择界面
-------------------------------------------------------- Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com -------------------------------------------------------- Centmin Mod Menu -------------------------------------------------------- 1). Centmin Install 2). Add Nginx vhost domain 3). NSD setup domain name DNS 4). Nginx Upgrade / Downgrade 5). PHP Upgrade / Downgrade 6). XCache Re-install 7). APC Cache Re-install 8). XCache Install 9). APC Cache Install 10). Memcached Server Re-install 11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu 12). Zend OpCache Install/Re-install 13). Install ioping.sh vbtechsupport.com/1239/ 14). SELinux disable 15). Install/Reinstall ImagicK PHP Extension 16). Change SSHD Port Number 17). Multi-thread compression: pigz,pbzip2,lbzip2... 18). Suhosin PHP Extension install 19). Install FFMPEG and FFMPEG PHP Extension 20). NSD Re-install 21). Update - Nginx + PHP-FPM + Siege 22). Add WordPress Nginx vhost + WP Super Cache 23). Update Centmin Mod Code Base 24). Exit -------------------------------------------------------- Enter option [ 1 - 24 ]
添加虚拟主机界面
-------------------------------------------------------- Enter option [ 1 - 24 ] 2 -------------------------------------------------------- Enter vhost domain name to add (without www. prefix): newdomain.com Create a self-signed SSL certificate Nginx vhost? [y/n]: y Create FTP username for vhost domain (enter username): ftp1 Auto generate FTP password (recommended) [y/n]: y FTP username you entered: ftpuser1 FTP password auto generated: ********************* ----------------------------------------------------------- SSL Vhost Setup... ----------------------------------------------------------- Generating self signed SSL certificate... Generating a 2048 bit RSA private key ........................................................+++ ....+++ writing new private key to 'newdomain.com.key' ----- Signature ok
有时间试试,貌似很强大
确实,功能比较全面
看上去不错~
应该比lnmp好些
一直在用的. 不过国内主机安装的话,有些源码包可能下载不到. nginx和php 都是编译的,编译安装速度比rpm包慢. 可选版本, 最新的nginx和PHP 都不在话下. 更新比较频繁.