Centmin Mod简介
一款国外的lnmp脚本,国内用的人不多,但使用的情况看,该脚本非常稳定,且php/mysql等功能也经过了优化,性能非常地不错,环境稳定。
官方有社区讨论,用户数非常多,比较活跃,社区地址:https://community.centminmod.com/
官方网址:https://centminmod.com
官方开源地址:https://github.com/centminmod/centminmod/tree/master
Recommended way is via above curl installer.sh or betainstaller.sh commands even if you need to customise your centmin.sh settings - you can do that via pre-populating the persistent config file, /etc/centminmod/custom_config.inc with overriding variables instead of directly editing centmin.sh file.
Type as root user in SSH these commands, Centmin Mod will have it's install setup at /usr/local/src/centminmod. Replace branchname=123.08stable with branchname=123.09beta01 if you want to install the beta version.
安装方法:
yum -y install git wget nano bc unzip cd /usr/local/src branchname=123.09beta01 git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod cd centminmod
注:branchname=后面是版本号,根据开源地址,可以选择安装的版本
Then to install either type
1. for menu mode run centmin.sh and select menu option 1 to install/菜单安装模式
./centmin.sh
菜单:
-------------------------------------------------------- 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
2. or for CLI install mode/CLI安装模式
./centmin.sh install
其它相关:
For latest 1.2.3-eva2000.08 stable install
Supports max PHP 7.0 version. For PHP 7.1+ and higher use 123.09beta01 (1.2.3-eva2000.09) beta installer below
yum -y update; curl -O https://centminmod.com/installer.sh && chmod 0700 installer.sh && bash installer.sh
For latest 1.2.3-eva2000.09 beta install
Also known as 123.09beta01 branch which supports PHP 7.1, 7.2, 7.3.
default PHP 5.6 beta installer
yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
PHP 7.0.x default beta installer
yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh
PHP 7.1.x default beta installer
yum -y update; curl -O https://centminmod.com/betainstaller71.sh && chmod 0700 betainstaller71.sh && bash betainstaller71.sh
PHP 7.2.x default beta installer
yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
PHP 7.3.x default beta installer. See PHP 7.3 release information and PHP 7.3 vs 7.2 vs 7.1 vs 7.0 benchmarks
yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
You can also customise your installs via pre-populating the persistent config file, /etc/centminmod/custom_config.inc with overriding variables instead of directly editing centmin.sh file BEFORE running the the betainstaller.sh. See examples discussed on the forums here.
也可参考Centmin Mod 官方文档和论坛讨论等。
http://www.savh.cn/thread-1144.htm
转载请注明:Savh.Cn 发表