aix 6 apper 2と配置負荷+tomcatグループをインストールします。
もっと読む
1.コンパイル環境gccの設置
gcc-42.0-3.aix 6.1.ppc.rpm
gcc-cplus-42.0-3.aix 6.1.ppc.rpm
libgcc-42.0-3.aix 6.1.ppc.rpm
libstdcplus-42.0-3.aix 6.1.ppc.rpm
libstdcplus-devel-42.0-3.aix 6.1.ppc.rpm
1.1ダウンロード先:
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html#Development/Tools
ftpダウンロードアドレス:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/
1.2 gccを取り付ける
2.1 apache公式サイトに行くhttp://httpd.apache.org/最新バージョンのhttpd-2.20.tar.gzをダウンロードします。
2.2リモート登録aix 6
テルnet 10.161.14.20
ユーザー名を入力:root
パスワードを入力:xxx
2.3 ftpでhttpd-2.20.tar.gzをアップロードしてaix 6システムの中/opt/Softディレクトリの下に行く
フォルダ作成ソフト
User daemen
Group daemen
に変更する
User
nobody
グループ
nobody
3.アプリの負荷を設定する
3.1プロファイルhttpd.com nfを修正する
同前
癜The configration files in the conf/extra/directory can be
癜includd to add extra feature s or to modify the default configration of
皱the server,or you may simply copy their contenshere and change as
安徽省にある地名.
皰Server-pool manage ment(MPM specific)
皬Include conf/extra/httpd-mpm.com.com.
嗳Multi-langage error message s
皬Include conf/extra/http-multilang-errordoc.com nf
嗳Facy directory listings
〹Include conf/extra/httpd-autindex.com nf
同前
皬Include conf/extra/http-lagages.com nf
ヽoo。ツ。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
〹Include conf/extra/httpd-userdir.com nf
皬Real-time info on requests and configration
Include conf/extra/http-info.com nf
ヽoo。ツ。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Include conf/extra/http-vhosts.com nf
ヽoo。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
〹Include conf/extra/httpd-maual.com nf
›Disctributed authoring and versioning(WebDAV)
皰Include conf/extra/httpd-dav.com nf
璣Varous default settings
皬Include conf/extra/httpd-default.com nf
癜Secure(SSL/TLS)connections
皬Include conf/extra/httpd-ssl.com nf
同前
ヽoo Note:The follwing must must be present to support
同前 starting without SSL on plotforms with no/dev/random equivalent
同前 but a statically compled-in mod_ssl.
同前
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
ProxyRequests Off Balancer Memberajp://10.161.14.55:8055/gis loadfactor=1 route=gis 55 Balancer Memberajp://10.161.14.20:8020/gis loadfactor=1 route=gis 20
3.2バックグラウンドモニタをオンにする
あるノードの負荷量を知るために、応答時間はどれぐらいかかりますか?サービスは正常ですか?Apacheは負荷均衡監視プラットフォームを提供しています。デフォルトではサービスが終了しています。設定ファイルを変更してサービスを開始する必要があります。サービスを開始したら、アクセスしてください。http://localhost/balancer-manager負荷の詳細が確認できます。
負荷バランスに使う以外にもhttp://localhost/server-status和http://localhost/server-info
設定ファイルのhttpd-info.com nfを修正します。
皬Get information about the requests being processed by the server
癜and the configration of the server.
同前
萼Required modules:mod_status(for the server-status handler)
同前 mod_info(for the server-info handler)
同前
癜Allow server status reportgenerated by mod_status
噫with the URL ofhttp://servername/server-status
〹Change the".local host"to match your domain to enable.
Set Handler server-status
Order deny、allow
Deny from all
Allow from[color=blue]all
[/カラー
同前
›ExtentdedStuts controlls whether Apache will generate“full”status
皬information(Extented Status On)or just baic information(Extented Status)
皱Off)when the「server-status」handler is caled.The default is Off.
同前
Extens Status On
同前
ヽoo Allow remote server configration reports,with the URL of
同前 http://servername/server-info (requires that mod_info.cbe loaded)
〹Change the".local host"to match your domain to enable.
同前
Set Handler server-info
Order deny、allow
Deny from all
Allow from[color=blue]all
[/カラー
SetHandler balancer-manager Order Deny,Allow Deny from all Allow from all
3.3仮想ホストを設定する
プロファイルhttpd-vhosts.com nfを修正します。
〹Virtual Hosts
同前
〹If you want to mantain multiple domans/hostnamens on your
璢machine you can setup Virtual Host containers for them.Most configrations
皬use only name-based virtual hosts so the server doesn't need to worly about
癜IP address.This is indicated by the asterisks in the directives below.
同前
臭Please see the documentation at
同前
ハfor further details before you try to setup virtual hosts.
同前
›You may use the command line option-S'to verify your virtual host
ハconfigration.
同前
璣Use name-based virtual hosting.
同前
NameVirtual Host*:80
同前
璣Virtual Host example:
ハAlmost any Apache directive may go into a Virtual Host container.
癜The first Virtual Host section is used for all requests that do not
鶼match a ServerName or ServerAlias in any block.
同前
[email protected] host
DcumentRoot「D:/Apple 2.2/docs/dummy-host.local host」
ServerName local host ServerAlias local host ProxyPass/gygisbalancer://gycluster/ stickysession=jsessionid nofailover=On ProxyPassReverse/gygisbalancer://gycluster/
Error Log「logs/dummy-host.local host-error.logs」
CustoomLog「logs/dummy-host.local host-access.logn」comon
ServerAdminwebmaster@dummy-ホット2.local host
DcumentRoot「D:/Apple 2.2/docs/dummy-host 2.local host」
ServerName dummy-host 2.local host
Error Log「logs/dummy-host.local host-error.logs」
CustoomLog「logs/dummy-host.local host-access.logs」comon
3.4オープン/停止appche
port=「8055」protocol=「AJP/1.3」
URIEncoding=「UTF-8」
redirectPort=「8443」/>
3.5.Sessionを開く唯一のスティッキーセッション
jvmRoute=「gis 55」
3.6 JAVEEアプリケーションのWebRoot/WEB-INF/web.xmlファイルを修正する
xmlns="http://java.sun.com/xml/ns/j2ee「
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance「
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
xxx
index.
index.httm
4.AIX再起動時、apacheは自動的に起動する
4.1スタートスクリプトの作成
echo----------apachstarting---------------------------
ス-root"-c/opt/cist/apache 2/bin/apachel-k start"
echo「----------apachstart completted---------------------------」
4.2スタートスクリプトを/etc/inittabの一番下に追加し、自己起動を実現する。そして起動ログを出力します。
参考ブログ:http://www.linuxidc.com/Linux/2011-01/31484.htm
1.コンパイル環境gccの設置
gcc-42.0-3.aix 6.1.ppc.rpm
gcc-cplus-42.0-3.aix 6.1.ppc.rpm
libgcc-42.0-3.aix 6.1.ppc.rpm
libstdcplus-42.0-3.aix 6.1.ppc.rpm
libstdcplus-devel-42.0-3.aix 6.1.ppc.rpm
1.1ダウンロード先:
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html#Development/Tools
ftpダウンロードアドレス:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/
1.2 gccを取り付ける
rpm -ivh gcc-4.2.0-3.aix6.1.ppc.rpm
rpm -ivh libgcc-4.2.0-3.aix6.1.ppc.rpm
rpm -ivh libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
rpm -ivh libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
rpm -ivh gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
2.アプリのインストール2.1 apache公式サイトに行くhttp://httpd.apache.org/最新バージョンのhttpd-2.20.tar.gzをダウンロードします。
2.2リモート登録aix 6
テルnet 10.161.14.20
ユーザー名を入力:root
パスワードを入力:xxx
2.3 ftpでhttpd-2.20.tar.gzをアップロードしてaix 6システムの中/opt/Softディレクトリの下に行く
フォルダ作成ソフト
cd /opt
mkdir soft
2.4解圧httpd-2.20.tar.gz
cd /opt/soft
gzip -d httpd-2.2.20.tar.gz
tar -xvf httpd-2.2.20.tar
2.5 appcheインストールディレクトリを作成する
cd /opt
mkdir cist
cd cist
mkdir apache2
2.6 httpd-2.20ファイルをコピーして/opt/cistディレクトリの下に行きます。
cd /opt/soft
cp -r httpd-2.2.20 /opt/cist/httpd-2.2.20
2.7 appcheの設置環境を設定し、コンパイルし、インストールする。
./configure --prefix=/opt/cist/apache2/ --enable-proxy --enable-proxy-ajp --enable-proxy-balancer --enable-proxy-connect --enable-proxy-http --enable-info
make
make install
2.8設定ファイルの変更
cd /opt/cist/apche2/conf
vi httpd.conf
次の2行をUser daemen
Group daemen
に変更する
User
nobody
グループ
nobody
3.アプリの負荷を設定する
3.1プロファイルhttpd.com nfを修正する
cd /opt/cist/apche2/conf
vi httpd.conf
ハSupplemental configration同前
癜The configration files in the conf/extra/directory can be
癜includd to add extra feature s or to modify the default configration of
皱the server,or you may simply copy their contenshere and change as
安徽省にある地名.
皰Server-pool manage ment(MPM specific)
皬Include conf/extra/httpd-mpm.com.com.
嗳Multi-langage error message s
皬Include conf/extra/http-multilang-errordoc.com nf
嗳Facy directory listings
〹Include conf/extra/httpd-autindex.com nf
同前
皬Include conf/extra/http-lagages.com nf
ヽoo。ツ。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
〹Include conf/extra/httpd-userdir.com nf
皬Real-time info on requests and configration
Include conf/extra/http-info.com nf
ヽoo。ツ。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Include conf/extra/http-vhosts.com nf
ヽoo。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
〹Include conf/extra/httpd-maual.com nf
›Disctributed authoring and versioning(WebDAV)
皰Include conf/extra/httpd-dav.com nf
璣Varous default settings
皬Include conf/extra/httpd-default.com nf
癜Secure(SSL/TLS)connections
皬Include conf/extra/httpd-ssl.com nf
同前
ヽoo Note:The follwing must must be present to support
同前 starting without SSL on plotforms with no/dev/random equivalent
同前 but a statically compled-in mod_ssl.
同前
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
ProxyRequests Off Balancer Memberajp://10.161.14.55:8055/gis loadfactor=1 route=gis 55 Balancer Memberajp://10.161.14.20:8020/gis loadfactor=1 route=gis 20
3.2バックグラウンドモニタをオンにする
あるノードの負荷量を知るために、応答時間はどれぐらいかかりますか?サービスは正常ですか?Apacheは負荷均衡監視プラットフォームを提供しています。デフォルトではサービスが終了しています。設定ファイルを変更してサービスを開始する必要があります。サービスを開始したら、アクセスしてください。http://localhost/balancer-manager負荷の詳細が確認できます。
負荷バランスに使う以外にもhttp://localhost/server-status和http://localhost/server-info
設定ファイルのhttpd-info.com nfを修正します。
cd /opt/cist/apache2/conf/extra/
vi httpd-info.conf
同前皬Get information about the requests being processed by the server
癜and the configration of the server.
同前
萼Required modules:mod_status(for the server-status handler)
同前 mod_info(for the server-info handler)
同前
癜Allow server status reportgenerated by mod_status
噫with the URL ofhttp://servername/server-status
〹Change the".local host"to match your domain to enable.
Set Handler server-status
Order deny、allow
Deny from all
Allow from[color=blue]all
[/カラー
同前
›ExtentdedStuts controlls whether Apache will generate“full”status
皬information(Extented Status On)or just baic information(Extented Status)
皱Off)when the「server-status」handler is caled.The default is Off.
同前
Extens Status On
同前
ヽoo Allow remote server configration reports,with the URL of
同前 http://servername/server-info (requires that mod_info.cbe loaded)
〹Change the".local host"to match your domain to enable.
同前
Set Handler server-info
Order deny、allow
Deny from all
Allow from[color=blue]all
[/カラー
SetHandler balancer-manager Order Deny,Allow Deny from all Allow from all
3.3仮想ホストを設定する
プロファイルhttpd-vhosts.com nfを修正します。
cd /opt/cist/apache2/conf/extra/
vi httpd-vhosts.conf
同前〹Virtual Hosts
同前
〹If you want to mantain multiple domans/hostnamens on your
璢machine you can setup Virtual Host containers for them.Most configrations
皬use only name-based virtual hosts so the server doesn't need to worly about
癜IP address.This is indicated by the asterisks in the directives below.
同前
臭Please see the documentation at
同前
ハfor further details before you try to setup virtual hosts.
同前
›You may use the command line option-S'to verify your virtual host
ハconfigration.
同前
璣Use name-based virtual hosting.
同前
NameVirtual Host*:80
同前
璣Virtual Host example:
ハAlmost any Apache directive may go into a Virtual Host container.
癜The first Virtual Host section is used for all requests that do not
鶼match a ServerName or ServerAlias in any block.
同前
[email protected] host
DcumentRoot「D:/Apple 2.2/docs/dummy-host.local host」
ServerName local host ServerAlias local host ProxyPass/gygisbalancer://gycluster/ stickysession=jsessionid nofailover=On ProxyPassReverse/gygisbalancer://gycluster/
Error Log「logs/dummy-host.local host-error.logs」
CustoomLog「logs/dummy-host.local host-access.logn」comon
ServerAdminwebmaster@dummy-ホット2.local host
DcumentRoot「D:/Apple 2.2/docs/dummy-host 2.local host」
ServerName dummy-host 2.local host
Error Log「logs/dummy-host.local host-error.logs」
CustoomLog「logs/dummy-host.local host-access.logs」comon
3.4オープン/停止appche
cd /opt/cist/apache2/bin
./apachectl -k start
./apachectl -k stop
./apachectl -k restart
3.5 Tomcat関連モジュールの配置(AJP)
vi /opt/cist/tomcat7/conf/server.xml
3.5.1オープンAJPプロファイルport=「8055」protocol=「AJP/1.3」
URIEncoding=「UTF-8」
redirectPort=「8443」/>
3.5.Sessionを開く唯一のスティッキーセッション
jvmRoute=「gis 55」
3.6 JAVEEアプリケーションのWebRoot/WEB-INF/web.xmlファイルを修正する
xmlns="http://java.sun.com/xml/ns/j2ee「
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance「
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
xxx
index.
index.httm
4.AIX再起動時、apacheは自動的に起動する
4.1スタートスクリプトの作成
cd /etc
touch rc.apache
chown g+x rc.apache chmod 700 rc.apache
vi rc.apache
ヽusr/bin/kshecho----------apachstarting---------------------------
ス-root"-c/opt/cist/apache 2/bin/apachel-k start"
echo「----------apachstart completted---------------------------」
4.2スタートスクリプトを/etc/inittabの一番下に追加し、自己起動を実現する。そして起動ログを出力します。
vi /etc/inittab
rc.apache:2:wait:/etc/rc.apache>/dev/consolie 2'&1参考ブログ:http://www.linuxidc.com/Linux/2011-01/31484.htm