LNMH: 高性能 VPS ホスティング環境

LNMH: 高性能 VPS ホスティング環境

LNMH は、Nginx と HHVM を組み合わせたアーキテクチャであり、高い効率性が特徴です。以下は構築プロセスです。

HHVM 公式サイト (ブロック): http://www.hhvm.com
HHVM Github: https://github.com/facebook/hhvm

1. HHVMをインストールする
1. セントOS
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
/etc/yum.repos.d をコピーします
http://www.hop5.in/yum/el6/hop5.repo で取得
おいしい、すべてきれい
yum -y libevent-devel libeventを削除します
yum -y hhvm をインストール –setopt=protected_multilib=false
2. デビアンシア
sudo apt-getアップデート
http://dl.hhvm.com/conf/hhvm.gpg.key を取得します。
sudo apt-key hhvm.gpg.keyを追加します
echo "deb http://dl.hhvm.com/debian wheezy main" >> /etc/apt/sources.list
sudo apt-getアップデート
sudo apt-get install -y hhvm

2. Fastcgiをインストールする
sudo /usr/share/hhvm/install_fastcgi.sh #Fastcgi をインストール
sudo update-rc.d hhvm defaults #ブートに追加
sudo service hhvm restart #HHVMを再起動します

3. LNMPをインストールする(オプション)
http://blog.linuxeye.com/lnmp.tar.gz から取得

wget http://blog.linuxeye.com/lnmp-full.tar.gz # ソースコードが含まれています (公式ダウンロードは遅すぎます)

tar xzf lnmp.tar.gz
cd lnmp

ディレクトリ(インストール、データストレージ、Nginxログ)を変更する必要がある場合は、options.confファイルを変更してください。

./install.sh
Nginx と memcached のみがインストールされています。

4. vhost.sh ファイルを変更して、仮想マシンを追加するときに nginx が Fastcgi を追加できるようにします。
見つかりました(314行目あたり)
[ ! -d $web_install_dir/conf/vhost ] && mkdir $web_install_dir/conf/vhost
cat > $web_install_dir/conf/vhost/$domain.conf << EOF server { listen 80; server_name $domain$moredomainame; $N_log index index.html index.htm index.jsp index.php; include $rewrite.conf; root $vhostdir; #error_page 404 /404.html; if ( \$query_string ~ “. [;'&lt;&gt;].*” ){

 return 404; }

$アンチホットリンク
echo -e $ngx_pagespeed
場所 ~ .*.(php|php5)?$ {

 #fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; }


変更する
[ ! -d $web_install_dir/conf/vhost ] && mkdir $web_install_dir/conf/vhost
cat > $web_install_dir/conf/vhost/$domain.conf << EOF server { listen 80; server_name $domain$moredomainame; $N_log index index.html index.htm index.jsp index.php; include $rewrite.conf; root $vhostdir; #error_page 404 /404.html; if ( \$query_string ~ “. [;'&lt;&gt;].*” ){

 return 404; }

$アンチホットリンク
echo -e $ngx_pagespeed
場所 ~ .*.(php|php5)?$ {

 fastcgi_pass 127.0.0.1:9000; #fastcgi_pass unix:/var/run/hhvm/hhvm.sock; fastcgi_index index.php; include fastcgi.conf; }

5. nginx.confファイルを修正して

pureftpd と phpmyadmin

 location ~ .*\.(php|php5)?$ { #fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; }


変更する

pureftpd と phpmyadmin

 location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; #fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; }

Nginxを再起動します。
サービス nginx を再起動

6. MySQLデータベースをインストールする
apt-get で mysql-server をインストールします

経由:deamwork

<<:  vpsGOD: $25/年/256MB メモリ/10GB スペース/100GB トラフィック/KVM

>>:  Hosty-Host: 年間 5 ドル / 500 MB のスペース / 10 GB のトラフィック / 1 つのドメイン名をバインド可能

推薦する

ChangeIP 512MB RAM SSD ハードドライブ ロサンゼルス Sharktech KVM VPS レビュー

詳細: ChangeIP: 月額 1.6 ドル/512 MB メモリ/20 GB SSD スペース/...

VPSUS: 13 元/月/300MB メモリ/10GB スペース/150GB トラフィック/OpenVZ/ロサンゼルス/ネイティブ IP

VPSUSはアメリカのホスティングサービスプロバイダーです。主な事業はロサンゼルスKVM VPSで...

Tospeed 256MB RAM SSD ハードドライブ 台湾 NAT KVM VPS レビュー

詳細: Tospeed: 18 元/月/256MB メモリ/4GB SSD スペース/300GB ト...

CloudCone: $12.95/年/256MB メモリ/10GB スペース/500GB トラフィック/1Gbps ポート/KVM/ロサンゼルス

CloudCone は比較的アクティブなホスティング プロバイダーで、主にロサンゼルス MC VPS...

CloudsVM: 月額 5.58 ドル / 512MB メモリ / 10GB SSD / 400GB 帯域幅 / OpenVZ / 香港

中国のホストであるCloudsVMは、2015年7月に設立されました。データセンターは香港にあり、共...

月額 3.95 ドル / 3G スペース / 50G トラフィック / アダルト コンテンツをサポートする仮想ホスティング - AltusHost

AltusHost は、2008 年に設立されたオランダのホスティング会社です。主に仮想ホスティン...

FreeRangeCloud: $15/年/1GB メモリ/25GB SSD スペース/3TB トラフィック/KVM/オランダ

カナダのホスティングプロバイダーである FreeRangeCloud は、主に仮想ホスティング、クラ...

Mishangyun 4GB RAM 5Mbps 帯域幅 香港 CN2 GIA KVM VPS レビュー

詳細: Mishang Cloud: 18.85元/月/1GBメモリ/20GB SSDハードディスク...

anyhk: 71元/月/1GBメモリ/10GB SSDスペース/無制限トラフィック/100Mbpsポート/KVM/サンノゼCN2 GIA

anyhkは2019年12月に設立された新設業者で、主に香港HKT VPSを提供しています。現在、...

ArubaCloud 1GB RAM ドイツ VMware VPS レビュー

詳細: ArubaCloud: 月額 1 ユーロ/1GB メモリ/20GB SSD/2TB トラフィ...

WattaServer: 月額 48.5 ドル / デュアル Xeon 5420 / 16 GB メモリ / 500 GB ハード ドライブ / 10 TB トラフィック / DDoS 保護 / シアトル

Watta Serverは1994年に設立されたアメリカのホスティングプロバイダーです。ロサンゼルス...

HudsonValleyHost: 月額 4 ドル / メモリ 1GB / スペース 30GB / トラフィック 4TB / KVM / ニューヨーク / Windows VPS

安定した商人、HudsonValleyHost。現在、以下の 2 つの特別オファーがあります。 Wi...

中国聯通9929路線返却サービス提供加盟店一覧【2020.04.08更新】

9929よりも価格が安く、速度がやや遅い4387のコレクション:中国聯通4387ルーティングバック...

設定、登録、中国語入力など、台湾 PTT にアクセスするための詳細な手順。

まず、ソフトウェアを準備します。まず、2 つのソフトウェアが必要です。1 つは papploc、もう...

Cloudflexy: $8.99/年/1GB メモリ/10GB スペース/無制限トラフィック/KVM/ロサンゼルス/シアトル/台湾

Cloudflexy は、ITDataTelecom 傘下のルーマニアのホスティング プロバイダーで...