$ sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql nginx php5-fpm
セントミンモードスクリプトを実行する前に、システム全体を更新し、必要に応じて再起動してください:
# yum -y update
# reboot
CentMin Modパッケージをダウンロードして解凍し、centmin.shに実行可能パーミッションを追加します:
# wget http://.com/download/centmin-..3-..zip
# unzip centmin-v1.2.3-eva2000.03.zip
# cd centmin-v1.2.3mod/
# chmod +x centmin.sh
このスクリプトを実行してください:
# ./centmin.sh
--------------------------------------------------------
Centmin Mod 1.2.3-eva2000.03 - http://.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.x Branch Upgrade Only
12). MariaDB 5.2.x to MariaDB 5.5 YUM upgrade
13). Install ioping.sh vbtechsupport.com/1239/
14). SELinux disable
15). Install/Re-install imagick PHP Extension
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Re-install
21). Exit
--------------------------------------------------------
Enter option [ 1 - 21 ] 1
...
*************************************************
* Centmin Mod install completed....
*************************************************
上記のメニュープロンプトが明確である、1)を選択します。 Centminのインストールは、Nginx / MySQL / PHPのインストールを開始するには、インストールが完了した後、ブラウザから直接このVPSへのIPアクセスを通じて、Nginxのテストページを見ることができます。
Nginx vhostの設定を追加する場合は、2)を選択します。 Nginx vhostドメインを追加します:
# ./centmin.sh
--------------------------------------------------------
Centmin Mod 1.2.3-eva2000.03 - http://.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.x Branch Upgrade Only
12). MariaDB 5.2.x to MariaDB 5.5 YUM upgrade
13). Install ioping.sh vbtechsupport.com/1239/
14). SELinux disable
15). Install/Re-install imagick PHP Extension
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Re-install
21). Exit
--------------------------------------------------------
Enter option [ 1 - 21 ] 2
--------------------------------------------------------
Enter vhost domain name you want to add (without www. prefix): vpsee.com
---------------------------------------------
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reloading nginx: [ OK ]
---------------------------------------------
vhost for vpsee.com created successfully
vhost conf file for vpsee.com created: /usr/local/nginx/conf/conf.d/vpsee.com.conf
upload files to /home/nginx/domains/vpsee.com/public
vhost log files directory is /home/nginx/domains/vpsee.com/log
Current vhost listing at: /usr/local/nginx/conf/conf.d/
Sep 11 22:26 2.3K virtual.conf
Sep 11 22:26 798 ssl.conf
Sep 11 22:55 1002 vpsee.com.conf
---------------------------------------------
PHPアクセラレータAPCをインストールしたい場合は、centmin.shを実行し、9)を選択してください。 APCキャッシュのインストール; SSHポートを変更したい場合は?SELinuxを無効にしたい場合は、上のメニューを見てください。





