(注:最初は、ローカルおよびリモートで発見されます
ここではどのような脚本です。これは、プロセスフローであります:
1.まず、ダウンロード4月、局部的に3つの.tar.gzファイルのAPR-utilの、httpdの合計。
これらの3つのファイルを解凍します2.。
3. PCRE PCRE-develのと依存関係をインストールします。
4.コンパイル、インストール4月
APR-utilのコンパイラーのインストール。
6.コンパイルとのhttpdをインストールします。
--- -ホスト:試験- openstack2の タスク: -名:ダウンロード4月、apr- utilの、httpdの GET_URL:URL = {{アイテム}} DEST = /ルート/ PKGの with_items: - http://mirrors.ustc.edu。 CN / apacheの/ 4月/ 4月-1.6.5 の.tar.gz - http://mirrors.ustc.edu.cn/apache/apr/apr-util-1.6.1 .tar.gzファイル -のhttp://ミラー。 ustc.edu.cn/apache/httpd/httpd-2.4.39 .tar.gzの delegate_to:ローカルホスト run_once:真 -アーカイブ解除:SRC = /ルート/ PKG / {{アイテム}} DEST = /ルート/ with_items: - apr- 1.6.5 は.tar.gz - 4月-utilの-1.6.1 .tar.gzの -のhttpd-2.4.39 .tar.gzの タグ:アーカイブしません -名前:インストールPCRE と pcre- develの YUM:名 = " {{アイテム}} "状態= インストール with_items: - PCRE - pcre- のdevel - 名前:4月complie シェル: | CDの /root/apr-1.6.5 。/のconfigure --prefix =は/ usr / local / 4月 のmake && make installを -名前:complie apr- utilの シェル: | CDの /root/apr-util-1.6.1 。/のconfigure --prefix =は/ usr / local /の4月-utilの--with-4月=は/ usr / local / 4月 のmake &&make installを - 名前:complie httpdの シェル: | CD /root/httpd-2.4.39 。/設定--prefix =は/ usr / local / apacheの--sysconfdir =の/ etc / apacheの\ --enable-のMPM共有= 全て\ --with-Z --with- PCRE \ --with-月= / USR /ローカル/ 4月\ --with-APR-utilの=は/ usr / local / apr- utilの\ --with-MPM = イベント メイク && make installを