Httpd服務進階知識-php-xcache加速訪問實戰案例php
做者:尹正傑html
版權聲明:原創做品,謝絕轉載!不然將追究法律責任。node
一.php-xcache加速器概述python
1>.查看epel源中自帶的PHP加速器mysql
[root@node101.yinzhengjie.org.cn ~]# yum -y install epel-release Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirrors.huaweicloud.com base | 3.6 kB 00:00 extras | 2.9 kB 00:00 updates | 2.9 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-11 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================== Package Arch Version Repository Size ===================================================================== Installing: epel-release noarch 7-11 extras 15 k Transaction Summary ===================================================================== Install 1 Package Total download size: 15 k Installed size: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-11.noarch 1/1 Verifying : epel-release-7-11.noarch 1/1 Installed: epel-release.noarch 0:7-11 Complete! [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# yum search php-xcache Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 6.6 kB 00:00 * base: mirror.bit.edu.cn * epel: mirrors.yun-idc.com * extras: mirror.bit.edu.cn * updates: mirrors.huaweicloud.com epel | 5.3 kB 00:00 (1/3): epel/x86_64/group_gz | 90 kB 00:00 (2/3): epel/x86_64/primary_db | 6.9 MB 00:00 (3/3): epel/x86_64/updateinfo | 1.0 MB 00:01 ====================== N/S matched: php-xcache ====================== php-xcache.x86_64 : Fast, stable PHP opcode cacher Name and summary matches only, use "search all" for everything. [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# yum info php-xcache Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * epel: mirrors.yun-idc.com * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn Available Packages Name : php-xcache Arch : x86_64 Version : 3.1.1 Release : 1.el7 Size : 72 k Repo : epel/x86_64 Summary : Fast, stable PHP opcode cacher URL : http://xcache.lighttpd.net/ License : BSD Description : XCache is a fast, stable PHP opcode and data cacher : that has been tested and is now running on production : servers under high load. : : It is tested (on linux) and supported on all of the : latest PHP release. ThreadSafe is also perfectly : supported. : : NOTICE: opcode cacher is disable to allow use with : php-opcache only for user data cache. You need to edit : configuration file (xcache.ini) to enable it. [root@node101.yinzhengjie.org.cn ~]#
2>.PHP加速器原理linux
全部的PHP是共享內存的,這樣將php代碼編譯成opcode你們均可以公用,無需再次編譯,從而將節省了編譯的時間。
3>.php-xcache加速器官網c++
遺憾的是,該加速器目前以及中止維護了,該加速器依舊停留在2014年發行的版本,所以php-xcache並不支持PHP7版本喲~ 不過聽說php7的版本自己就有很大性能的提高,咱們可使用httpd2.4.9即以上版本結合php 7.x版原本源碼編譯安裝一下LAMP架構,並使用ab命令測試,對比一下php5.x版本經過加速的版本和php7.x不支持加速的版本之間的響應速度。 本人通過屢次測試,發現直接使用ab命令測試,php5版本對應的每秒完成的平均請求數(大概是12-16左右)要小於php7版本對應的平局每秒完成的請求數(大概是22-25左右),但php5若是使用了php-xcache加速器的話每秒完成的平均請求數(大概是34-37左右)要大於php7版本對應的每秒完成的平均請求數。可能這個時候你會問我若是php7結合php-xcache的每秒完成請求平均數是多少?惋惜,很依然,php-xcache是開源項目,但在2014年就中止開發了,官方聲明支持對應的php版本最新爲5.6,以下圖所示。
對於源碼編譯方式部署LAMP環境及測試結果我已經整理成相應的筆記啦,感興趣的可參考個人博客筆記:https://www.cnblogs.com/yinzhengjie/p/12026446.html
二.使用epel源安裝php-xcache加速實戰git
1>.實驗環境說明(爲了試驗方便我就不單獨部署fastcgi服務器了,而是直接使用httpd內置模塊來動態加載動態程序)sql
node101.yinzhengjie.org.cn:
安裝httpd,php,php-mysql
node103.yinzhengjie.org.cn:
安裝mariadb數據庫
2>.node101.yinzhengjie.org.cn節點shell
[root@node101.yinzhengjie.org.cn ~]# yum -y install httpd php php-mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * epel: mirrors.yun-idc.com * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn Package httpd-2.4.6-90.el7.centos.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.4.16-46.1.el7_7 will be installed --> Processing Dependency: php-common(x86-64) = 5.4.16-46.1.el7_7 for package: php -5.4.16-46.1.el7_7.x86_64--> Processing Dependency: php-cli(x86-64) = 5.4.16-46.1.el7_7 for package: php-5. 4.16-46.1.el7_7.x86_64---> Package php-mysql.x86_64 0:5.4.16-46.1.el7_7 will be installed --> Processing Dependency: php-pdo(x86-64) = 5.4.16-46.1.el7_7 for package: php-my sql-5.4.16-46.1.el7_7.x86_64--> Running transaction check ---> Package php-cli.x86_64 0:5.4.16-46.1.el7_7 will be installed ---> Package php-common.x86_64 0:5.4.16-46.1.el7_7 will be installed --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-46. 1.el7_7.x86_64---> Package php-pdo.x86_64 0:5.4.16-46.1.el7_7 will be installed --> Running transaction check ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================== Package Arch Version Repository Size ================================================================================== Installing: php x86_64 5.4.16-46.1.el7_7 updates 1.4 M php-mysql x86_64 5.4.16-46.1.el7_7 updates 101 k Installing for dependencies: libzip x86_64 0.10.1-8.el7 base 48 k php-cli x86_64 5.4.16-46.1.el7_7 updates 2.7 M php-common x86_64 5.4.16-46.1.el7_7 updates 565 k php-pdo x86_64 5.4.16-46.1.el7_7 updates 99 k Transaction Summary ================================================================================== Install 2 Packages (+4 Dependent packages) Total download size: 4.9 M Installed size: 18 M Downloading packages: (1/6): php-mysql-5.4.16-46.1.el7_7.x86_64.rpm | 101 kB 00:00:00 (2/6): php-pdo-5.4.16-46.1.el7_7.x86_64.rpm | 99 kB 00:00:00 (3/6): php-common-5.4.16-46.1.el7_7.x86_64.rpm | 565 kB 00:00:00 (4/6): php-5.4.16-46.1.el7_7.x86_64.rpm | 1.4 MB 00:00:00 (5/6): php-cli-5.4.16-46.1.el7_7.x86_64.rpm | 2.7 MB 00:00:02 (6/6): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:02 ---------------------------------------------------------------------------------- Total 1.6 MB/s | 4.9 MB 00:03 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libzip-0.10.1-8.el7.x86_64 1/6 Installing : php-common-5.4.16-46.1.el7_7.x86_64 2/6 Installing : php-cli-5.4.16-46.1.el7_7.x86_64 3/6 Installing : php-pdo-5.4.16-46.1.el7_7.x86_64 4/6 Installing : php-mysql-5.4.16-46.1.el7_7.x86_64 5/6 Installing : php-5.4.16-46.1.el7_7.x86_64 6/6 Verifying : php-cli-5.4.16-46.1.el7_7.x86_64 1/6 Verifying : libzip-0.10.1-8.el7.x86_64 2/6 Verifying : php-5.4.16-46.1.el7_7.x86_64 3/6 Verifying : php-common-5.4.16-46.1.el7_7.x86_64 4/6 Verifying : php-mysql-5.4.16-46.1.el7_7.x86_64 5/6 Verifying : php-pdo-5.4.16-46.1.el7_7.x86_64 6/6 Installed: php.x86_64 0:5.4.16-46.1.el7_7 php-mysql.x86_64 0:5.4.16-46.1.el7_7 Dependency Installed: libzip.x86_64 0:0.10.1-8.el7 php-cli.x86_64 0:5.4.16-46.1.el7_7 php-common.x86_64 0:5.4.16-46.1.el7_7 php-pdo.x86_64 0:5.4.16-46.1.el7_7 Complete! [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# ll total 8872 -rw-r--r-- 1 root root 9082696 Oct 24 08:50 wordpress-4.9.4-zh_CN.tar.gz [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# tar -xf wordpress-4.9.4-zh_CN.tar.gz [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# cd wordpress [root@node101.yinzhengjie.org.cn ~/wordpress]# [root@node101.yinzhengjie.org.cn ~/wordpress]# cp -a . /var/www/html/ [root@node101.yinzhengjie.org.cn ~/wordpress]# [root@node101.yinzhengjie.org.cn ~/wordpress]# cd /var/www/html/ [root@node101.yinzhengjie.org.cn /var/www/html]# [root@node101.yinzhengjie.org.cn /var/www/html]# mv wp-config-sample.php wp-config.php [root@node101.yinzhengjie.org.cn /var/www/html]# [root@node101.yinzhengjie.org.cn /var/www/html]# vim wp-config.php #編輯php的配置文件,修改鏈接數據庫的用戶名,密碼,數據庫以及數據庫服務器地址等。
2>.node103.yinzhengjie.org.cn節點
[root@node103.yinzhengjie.org.cn ~]# yum -y install mariadb-server Loaded plugins: fastestmirror Determining fastest mirrors * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/4): base/7/x86_64/group_gz | 165 kB 00:00:00 (2/4): base/7/x86_64/primary_db | 6.0 MB 00:00:00 (3/4): extras/7/x86_64/primary_db | 153 kB 00:00:00 (4/4): updates/7/x86_64/primary_db | 5.8 MB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package mariadb-server.x86_64 1:5.5.64-1.el7 will be installed --> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.64-1.el7 for package: 1:mariadb-server-5.5.64-1.el7.x86_64 --> Processing Dependency: mariadb(x86-64) = 1:5.5.64-1.el7 for package: 1:mariadb-server-5.5.64-1.el7.x86_64 --> Processing Dependency: perl-DBI for package: 1:mariadb-server-5.5.64-1.el7.x86_64 --> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.64-1.el7.x86_64 --> Processing Dependency: perl(DBI) for package: 1:mariadb-server-5.5.64-1.el7.x86_64 --> Running transaction check ---> Package mariadb.x86_64 1:5.5.64-1.el7 will be installed ---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be updated ---> Package mariadb-libs.x86_64 1:5.5.64-1.el7 will be an update ---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed ---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed --> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64 --> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64 --> Running transaction check ---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed --> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch --> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch --> Running transaction check ---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================= Package Arch Version Repository Size ================================================================================================================================================= Installing: mariadb-server x86_64 1:5.5.64-1.el7 base 11 M Installing for dependencies: mariadb x86_64 1:5.5.64-1.el7 base 8.7 M perl-DBD-MySQL x86_64 4.023-6.el7 base 140 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k Updating for dependencies: mariadb-libs x86_64 1:5.5.64-1.el7 base 759 k Transaction Summary ================================================================================================================================================= Install 1 Package (+5 Dependent packages) Upgrade ( 1 Dependent package) Total download size: 22 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/7): mariadb-libs-5.5.64-1.el7.x86_64.rpm | 759 kB 00:00:00 (2/7): mariadb-5.5.64-1.el7.x86_64.rpm | 8.7 MB 00:00:00 (3/7): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm | 140 kB 00:00:00 (4/7): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00 (5/7): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00 (6/7): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00 (7/7): mariadb-server-5.5.64-1.el7.x86_64.rpm | 11 MB 00:00:01 ------------------------------------------------------------------------------------------------------------------------------------------------- Total 15 MB/s | 22 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 1:mariadb-libs-5.5.64-1.el7.x86_64 1/8 Installing : 1:mariadb-5.5.64-1.el7.x86_64 2/8 Installing : perl-Net-Daemon-0.48-5.el7.noarch 3/8 Installing : perl-PlRPC-0.2020-14.el7.noarch 4/8 Installing : perl-DBI-1.627-4.el7.x86_64 5/8 Installing : perl-DBD-MySQL-4.023-6.el7.x86_64 6/8 Installing : 1:mariadb-server-5.5.64-1.el7.x86_64 7/8 Cleanup : 1:mariadb-libs-5.5.60-1.el7_5.x86_64 8/8 Verifying : 1:mariadb-libs-5.5.64-1.el7.x86_64 1/8 Verifying : perl-Net-Daemon-0.48-5.el7.noarch 2/8 Verifying : 1:mariadb-5.5.64-1.el7.x86_64 3/8 Verifying : perl-DBD-MySQL-4.023-6.el7.x86_64 4/8 Verifying : 1:mariadb-server-5.5.64-1.el7.x86_64 5/8 Verifying : perl-DBI-1.627-4.el7.x86_64 6/8 Verifying : perl-PlRPC-0.2020-14.el7.noarch 7/8 Verifying : 1:mariadb-libs-5.5.60-1.el7_5.x86_64 8/8 Installed: mariadb-server.x86_64 1:5.5.64-1.el7 Dependency Installed: mariadb.x86_64 1:5.5.64-1.el7 perl-DBD-MySQL.x86_64 0:4.023-6.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 Dependency Updated: mariadb-libs.x86_64 1:5.5.64-1.el7 Complete! [root@node103.yinzhengjie.org.cn ~]#
[root@node103.yinzhengjie.org.cn ~]# [root@node103.yinzhengjie.org.cn ~]# systemctl start mariadb [root@node103.yinzhengjie.org.cn ~]# [root@node103.yinzhengjie.org.cn ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! [root@node103.yinzhengjie.org.cn ~]# [root@node103.yinzhengjie.org.cn ~]#
[root@node103.yinzhengjie.org.cn ~]# mysql -uroot -pyinzhengjie Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 5.5.64-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> MariaDB [(none)]> CREATE DATABASE wordpress DEFAULT CHARACTER SET = utf8mb4; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> MariaDB [(none)]> GRANT ALL ON wordpress.* TO jason@'172.30.1.%' IDENTIFIED BY 'yinzhengjie'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> MariaDB [(none)]> QUIT Bye [root@node103.yinzhengjie.org.cn ~]#
3>.啓動httpd服務(會自動加載php相關模塊)並訪問WebUI界面安裝wordpress
[root@node101.yinzhengjie.org.cn ~]# systemctl start httpd [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 *:80 *:* LISTEN 0 128 *:22 *:* LISTEN 0 128 :::22 :::* [root@node101.yinzhengjie.org.cn ~]#
4>.對wordpress服務進行壓力測試
[root@node101.yinzhengjie.org.cn ~]# ab -c 10 -n 200 http://node101.yinzhengjie.org.cn/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking node101.yinzhengjie.org.cn (be patient) Completed 100 requests Completed 200 requests Finished 200 requests Server Software: Apache/2.4.6 Server Hostname: node101.yinzhengjie.org.cn Server Port: 80 Document Path: / Document Length: 53802 bytes Concurrency Level: 10 Time taken for tests: 13.930 seconds Complete requests: 200 Failed requests: 0 Write errors: 0 Total transferred: 10814600 bytes HTML transferred: 10760400 bytes Requests per second: 14.36 [#/sec] (mean) #未加速前,咱們發現每秒完成的請求數才14個,效率很低 Time per request: 696.520 [ms] (mean) Time per request: 69.652 [ms] (mean, across all concurrent requests) Transfer rate: 758.14 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 322 681 104.5 677 1057 Waiting: 243 612 101.4 604 966 Total: 322 681 104.5 677 1057 Percentage of the requests served within a certain time (ms) 50% 677 66% 702 75% 733 80% 745 90% 795 95% 897 98% 947 99% 1008 100% 1057 (longest request) [root@node101.yinzhengjie.org.cn ~]#
5>.安裝php-xcache加速器
[root@node101.yinzhengjie.org.cn ~]# yum -y install php-xcache Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 6.1 kB 00:00:00 * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn epel | 5.3 kB 00:00:00 (1/3): epel/x86_64/group_gz | 90 kB 00:00:00 (2/3): epel/x86_64/primary_db | 6.9 MB 00:00:00 epel/x86_64/updateinfo FAILED http://my.mirrors.thegigabit.com/epel/7/x86_64/repodata/51d82b56117bd789590c071ce452588fa7f9f9f22971b3c3d568a8e 37f28a6be-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not FoundTrying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https://bugs.centos.org/. (3/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package php-xcache.x86_64 0:3.1.1-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================== Package Arch Version Repository Size =============================================================================================================== Installing: php-xcache x86_64 3.1.1-1.el7 epel 72 k Transaction Summary =============================================================================================================== Install 1 Package Total download size: 72 k Installed size: 187 k Downloading packages: warning: /var/cache/yum/x86_64/7/epel/packages/php-xcache-3.1.1-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signatur e, key ID 352c64e5: NOKEYPublic key for php-xcache-3.1.1-1.el7.x86_64.rpm is not installed php-xcache-3.1.1-1.el7.x86_64.rpm | 72 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php-xcache-3.1.1-1.el7.x86_64 1/1 Verifying : php-xcache-3.1.1-1.el7.x86_64 1/1 Installed: php-xcache.x86_64 0:3.1.1-1.el7 Complete! [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# rpm -ql php-xcache /etc/php.d/xcache.ini /usr/lib64/php/modules/xcache.so #安裝了php模塊 /usr/share/doc/php-xcache-3.1.1 /usr/share/doc/php-xcache-3.1.1/AUTHORS /usr/share/doc/php-xcache-3.1.1/COPYING /usr/share/doc/php-xcache-3.1.1/ChangeLog /usr/share/doc/php-xcache-3.1.1/README /usr/share/doc/php-xcache-3.1.1/THANKS [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# egrep -v "^ *;|^$" /etc/php.d/xcache.ini [xcache-common] extension = xcache.so [xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "mOo" xcache.admin.pass = "md5 encrypted password" [xcache] xcache.shm_scheme = "mmap" xcache.size = 60M xcache.count = 1 xcache.slots = 8K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 4M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.var_namespace_mode = 0 xcache.var_namespace = "" xcache.readonly_protection = Off xcache.mmap_path = "/dev/zero" xcache.coredump_directory = "" xcache.coredump_type = 0 xcache.disable_on_crash = Off xcache.experimental = Off xcache.cacher = Off xcache.stat = On xcache.optimizer = Off [xcache.coverager] xcache.coverager = Off xcache.coverager_autostart = On xcache.coveragedump_directory = "" [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# egrep -v "^ *;|^$" /etc/php.d/xcache.ini | grep extension #因爲安裝php-xcache後配置文件有加載相應的模塊,所以咱們須要重啓或者從新加載一下httpd服務,讓php-cache的配置文件生效。 extension = xcache.so [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# systemctl restart httpd [root@node101.yinzhengjie.org.cn ~]#
6>.再次對wordpress服務進行壓力測試,發現效果並不明顯
[root@node101.yinzhengjie.org.cn ~]# ab -c 10 -n 200 http://node101.yinzhengjie.org.cn/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking node101.yinzhengjie.org.cn (be patient) Completed 100 requests Completed 200 requests Finished 200 requests Server Software: Apache/2.4.6 Server Hostname: node101.yinzhengjie.org.cn Server Port: 80 Document Path: / Document Length: 53802 bytes Concurrency Level: 10 Time taken for tests: 13.228 seconds Complete requests: 200 Failed requests: 0 Write errors: 0 Total transferred: 10814600 bytes HTML transferred: 10760400 bytes Requests per second: 15.12 [#/sec] (mean) #咱們發現epel的源提供的php-cache加速器的速度並不明顯啊,和以前的測試相比能夠說幾乎沒有提示效果! Time per request: 661.419 [ms] (mean) Time per request: 66.142 [ms] (mean, across all concurrent requests) Transfer rate: 798.37 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 285 644 89.5 647 865 Waiting: 230 578 84.2 585 801 Total: 285 644 89.5 647 865 Percentage of the requests served within a certain time (ms) 50% 647 66% 677 75% 698 80% 707 90% 749 95% 792 98% 841 99% 854 100% 865 (longest request) [root@node101.yinzhengjie.org.cn ~]#
三.從官網下載最新版本(2014年發佈的,如今已經中止維護了)的php-xcache加速器
1>.卸載默認的加速器
[root@node101.yinzhengjie.org.cn ~]# yum -y remove php-xcache Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package php-xcache.x86_64 0:3.1.1-1.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Removing: php-xcache x86_64 3.1.1-1.el7 @epel 187 k Transaction Summary ============================================================================================================================================================================ Remove 1 Package Installed size: 187 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : php-xcache-3.1.1-1.el7.x86_64 1/1 Verifying : php-xcache-3.1.1-1.el7.x86_64 1/1 Removed: php-xcache.x86_64 0:3.1.1-1.el7 Complete! [root@node101.yinzhengjie.org.cn ~]#
2>.從官網下載2014年發佈的xcache加速器
下載地址: http://xcache.lighttpd.net/wiki/ReleaseArchive
3>.安裝xcache須要的依賴包
[root@node101.yinzhengjie.org.cn ~]# yum -y groupinstall "development tools" Loaded plugins: fastestmirror There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn Resolving Dependencies --> Running transaction check ---> Package autoconf.noarch 0:2.69-11.el7 will be installed ---> Package automake.noarch 0:1.13.4-3.el7 will be installed --> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch ---> Package bison.x86_64 0:3.0.4-2.el7 will be installed ---> Package byacc.x86_64 0:1.9.20130304-3.el7 will be installed ---> Package cscope.x86_64 0:15.8-10.el7 will be installed ---> Package ctags.x86_64 0:5.8-13.el7 will be installed ---> Package diffstat.x86_64 0:1.57-4.el7 will be installed ---> Package doxygen.x86_64 1:1.8.5-3.el7 will be installed ---> Package elfutils.x86_64 0:0.176-2.el7 will be installed --> Processing Dependency: elfutils-libs(x86-64) = 0.176-2.el7 for package: elfutils-0.176-2.el7.x86_64 --> Processing Dependency: elfutils-libelf(x86-64) = 0.176-2.el7 for package: elfutils-0.176-2.el7.x86_64 --> Processing Dependency: libdw.so.1(ELFUTILS_0.175)(64bit) for package: elfutils-0.176-2.el7.x86_64 --> Processing Dependency: libdw.so.1(ELFUTILS_0.173)(64bit) for package: elfutils-0.176-2.el7.x86_64 ---> Package flex.x86_64 0:2.5.37-6.el7 will be installed ---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed --> Processing Dependency: libgomp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64 --> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64 --> Processing Dependency: libgcc >= 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64 --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64 --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64 ---> Package gcc-c++.x86_64 0:4.8.5-39.el7 will be installed --> Processing Dependency: libstdc++-devel = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64 --> Processing Dependency: libstdc++ = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64 ---> Package gcc-gfortran.x86_64 0:4.8.5-39.el7 will be installed --> Processing Dependency: libquadmath-devel = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64 --> Processing Dependency: libquadmath = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64 --> Processing Dependency: libgfortran = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64 --> Processing Dependency: libgfortran.so.3()(64bit) for package: gcc-gfortran-4.8.5-39.el7.x86_64 ---> Package git.x86_64 0:1.8.3.1-20.el7 will be installed --> Processing Dependency: perl-Git = 1.8.3.1-20.el7 for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: rsync for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Git) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Error) for package: git-1.8.3.1-20.el7.x86_64 ---> Package indent.x86_64 0:2.2.11-13.el7 will be installed ---> Package intltool.noarch 0:0.50.2-7.el7 will be installed --> Processing Dependency: perl(XML::Parser) for package: intltool-0.50.2-7.el7.noarch --> Processing Dependency: gettext-devel for package: intltool-0.50.2-7.el7.noarch ---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed ---> Package patchutils.x86_64 0:0.3.3-4.el7 will be installed ---> Package rcs.x86_64 0:5.9.0-5.el7 will be installed ---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: python-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch ---> Package rpm-build.x86_64 0:4.11.3-40.el7 will be installed --> Processing Dependency: rpm = 4.11.3-40.el7 for package: rpm-build-4.11.3-40.el7.x86_64 --> Processing Dependency: bzip2 for package: rpm-build-4.11.3-40.el7.x86_64 --> Processing Dependency: /usr/bin/gdb-add-index for package: rpm-build-4.11.3-40.el7.x86_64 ---> Package rpm-sign.x86_64 0:4.11.3-40.el7 will be installed --> Processing Dependency: rpm-build-libs(x86-64) = 4.11.3-40.el7 for package: rpm-sign-4.11.3-40.el7.x86_64 ---> Package subversion.x86_64 0:1.7.14-14.el7 will be installed --> Processing Dependency: subversion-libs(x86-64) = 1.7.14-14.el7 for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64 --> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.7.14-14.el7.x86_64 ---> Package swig.x86_64 0:2.0.10-5.el7 will be installed ---> Package systemtap.x86_64 0:4.0-10.el7_7 will be installed --> Processing Dependency: systemtap-devel = 4.0-10.el7_7 for package: systemtap-4.0-10.el7_7.x86_64 --> Processing Dependency: systemtap-client = 4.0-10.el7_7 for package: systemtap-4.0-10.el7_7.x86_64 --> Running transaction check ---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed ---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed ---> Package dwz.x86_64 0:0.11-3.el7 will be installed ---> Package elfutils-libelf.x86_64 0:0.172-2.el7 will be updated ---> Package elfutils-libelf.x86_64 0:0.176-2.el7 will be an update ---> Package elfutils-libs.x86_64 0:0.172-2.el7 will be updated ---> Package elfutils-libs.x86_64 0:0.176-2.el7 will be an update ---> Package gdb.x86_64 0:7.6.1-115.el7 will be installed ---> Package gettext-devel.x86_64 0:0.19.8.1-2.el7 will be installed --> Processing Dependency: gettext-common-devel = 0.19.8.1-2.el7 for package: gettext-devel-0.19.8.1-2.el7.x86_64 ---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated ---> Package libgcc.x86_64 0:4.8.5-39.el7 will be an update ---> Package libgfortran.x86_64 0:4.8.5-39.el7 will be installed ---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated ---> Package libgomp.x86_64 0:4.8.5-39.el7 will be an update ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed ---> Package libquadmath.x86_64 0:4.8.5-39.el7 will be installed ---> Package libquadmath-devel.x86_64 0:4.8.5-39.el7 will be installed ---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be updated ---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be an update ---> Package libstdc++-devel.x86_64 0:4.8.5-39.el7 will be installed ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed ---> Package neon.x86_64 0:0.30.0-4.el7 will be installed --> Processing Dependency: libgnutls.so.28(GNUTLS_3_0_0)(64bit) for package: neon-0.30.0-4.el7.x86_64 --> Processing Dependency: libgnutls.so.28(GNUTLS_2_12)(64bit) for package: neon-0.30.0-4.el7.x86_64 --> Processing Dependency: libgnutls.so.28(GNUTLS_1_4)(64bit) for package: neon-0.30.0-4.el7.x86_64 --> Processing Dependency: libproxy.so.1()(64bit) for package: neon-0.30.0-4.el7.x86_64 --> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.30.0-4.el7.x86_64 --> Processing Dependency: libgnutls.so.28()(64bit) for package: neon-0.30.0-4.el7.x86_64 ---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed ---> Package perl-Git.noarch 0:1.8.3.1-20.el7 will be installed ---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed ---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed ---> Package perl-XML-Parser.x86_64 0:2.41-10.el7 will be installed ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed ---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed ---> Package rpm.x86_64 0:4.11.3-35.el7 will be updated --> Processing Dependency: rpm = 4.11.3-35.el7 for package: rpm-python-4.11.3-35.el7.x86_64 --> Processing Dependency: rpm = 4.11.3-35.el7 for package: rpm-libs-4.11.3-35.el7.x86_64 ---> Package rpm.x86_64 0:4.11.3-40.el7 will be an update ---> Package rpm-build-libs.x86_64 0:4.11.3-35.el7 will be updated ---> Package rpm-build-libs.x86_64 0:4.11.3-40.el7 will be an update ---> Package rsync.x86_64 0:3.1.2-6.el7_6.1 will be installed ---> Package subversion-libs.x86_64 0:1.7.14-14.el7 will be installed ---> Package systemtap-client.x86_64 0:4.0-10.el7_7 will be installed --> Processing Dependency: systemtap-runtime = 4.0-10.el7_7 for package: systemtap-client-4.0-10.el7_7.x86_64 --> Processing Dependency: mokutil for package: systemtap-client-4.0-10.el7_7.x86_64 ---> Package systemtap-devel.x86_64 0:4.0-10.el7_7 will be installed --> Processing Dependency: kernel-devel-uname-r for package: systemtap-devel-4.0-10.el7_7.x86_64 --> Running transaction check ---> Package gettext-common-devel.noarch 0:0.19.8.1-2.el7 will be installed ---> Package gnutls.x86_64 0:3.3.29-9.el7_6 will be installed --> Processing Dependency: trousers >= 0.3.11.2 for package: gnutls-3.3.29-9.el7_6.x86_64 --> Processing Dependency: libnettle.so.4()(64bit) for package: gnutls-3.3.29-9.el7_6.x86_64 --> Processing Dependency: libhogweed.so.2()(64bit) for package: gnutls-3.3.29-9.el7_6.x86_64 ---> Package kernel-debug-devel.x86_64 0:3.10.0-1062.9.1.el7 will be installed ---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed --> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-11.el7.x86_64 ---> Package mokutil.x86_64 0:15-2.el7.centos will be installed --> Processing Dependency: libefivar.so.1(libefivar.so.0)(64bit) for package: mokutil-15-2.el7.centos.x86_64 --> Processing Dependency: libefivar.so.1(LIBEFIVAR_0.24)(64bit) for package: mokutil-15-2.el7.centos.x86_64 --> Processing Dependency: libefivar.so.1()(64bit) for package: mokutil-15-2.el7.centos.x86_64 ---> Package pakchois.x86_64 0:0.4-10.el7 will be installed ---> Package rpm-libs.x86_64 0:4.11.3-35.el7 will be updated ---> Package rpm-libs.x86_64 0:4.11.3-40.el7 will be an update ---> Package rpm-python.x86_64 0:4.11.3-35.el7 will be updated ---> Package rpm-python.x86_64 0:4.11.3-40.el7 will be an update ---> Package systemtap-runtime.x86_64 0:4.0-10.el7_7 will be installed --> Processing Dependency: libsymtabAPI.so.9.3()(64bit) for package: systemtap-runtime-4.0-10.el7_7.x86_64 --> Processing Dependency: libdyninstAPI.so.9.3()(64bit) for package: systemtap-runtime-4.0-10.el7_7.x86_64 --> Running transaction check ---> Package dyninst.x86_64 0:9.3.1-3.el7 will be installed --> Processing Dependency: libdwarf.so.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64 --> Processing Dependency: libboost_thread-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64 --> Processing Dependency: libboost_system-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64 --> Processing Dependency: libboost_date_time-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64 ---> Package efivar-libs.x86_64 0:36-12.el7 will be installed ---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed ---> Package nettle.x86_64 0:2.7.1-8.el7 will be installed ---> Package trousers.x86_64 0:0.3.14-2.el7 will be installed --> Running transaction check ---> Package boost-date-time.x86_64 0:1.53.0-27.el7 will be installed ---> Package boost-system.x86_64 0:1.53.0-27.el7 will be installed ---> Package boost-thread.x86_64 0:1.53.0-27.el7 will be installed ---> Package libdwarf.x86_64 0:20130207-4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing for group install "Development Tools": autoconf noarch 2.69-11.el7 base 701 k automake noarch 1.13.4-3.el7 base 679 k bison x86_64 3.0.4-2.el7 base 674 k byacc x86_64 1.9.20130304-3.el7 base 65 k cscope x86_64 15.8-10.el7 base 203 k ctags x86_64 5.8-13.el7 base 155 k diffstat x86_64 1.57-4.el7 base 35 k doxygen x86_64 1:1.8.5-3.el7 base 3.6 M elfutils x86_64 0.176-2.el7 base 305 k flex x86_64 2.5.37-6.el7 base 293 k gcc x86_64 4.8.5-39.el7 base 16 M gcc-c++ x86_64 4.8.5-39.el7 base 7.2 M gcc-gfortran x86_64 4.8.5-39.el7 base 6.7 M git x86_64 1.8.3.1-20.el7 base 4.4 M indent x86_64 2.2.11-13.el7 base 150 k intltool noarch 0.50.2-7.el7 base 59 k libtool x86_64 2.4.2-22.el7_3 base 588 k patchutils x86_64 0.3.3-4.el7 base 104 k rcs x86_64 5.9.0-5.el7 base 230 k redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k rpm-build x86_64 4.11.3-40.el7 base 149 k rpm-sign x86_64 4.11.3-40.el7 base 48 k subversion x86_64 1.7.14-14.el7 base 1.0 M swig x86_64 2.0.10-5.el7 base 1.3 M systemtap x86_64 4.0-10.el7_7 updates 15 k Installing for dependencies: boost-date-time x86_64 1.53.0-27.el7 base 52 k boost-system x86_64 1.53.0-27.el7 base 40 k boost-thread x86_64 1.53.0-27.el7 base 57 k bzip2 x86_64 1.0.6-13.el7 base 52 k cpp x86_64 4.8.5-39.el7 base 5.9 M dwz x86_64 0.11-3.el7 base 99 k dyninst x86_64 9.3.1-3.el7 base 3.5 M efivar-libs x86_64 36-12.el7 base 88 k gdb x86_64 7.6.1-115.el7 base 2.4 M gettext-common-devel noarch 0.19.8.1-2.el7 base 410 k gettext-devel x86_64 0.19.8.1-2.el7 base 320 k gnutls x86_64 3.3.29-9.el7_6 base 680 k kernel-debug-devel x86_64 3.10.0-1062.9.1.el7 updates 18 M libdwarf x86_64 20130207-4.el7 base 109 k libgfortran x86_64 4.8.5-39.el7 base 300 k libmodman x86_64 2.0.1-8.el7 base 28 k libmpc x86_64 1.0.1-3.el7 base 51 k libproxy x86_64 0.4.11-11.el7 base 64 k libquadmath x86_64 4.8.5-39.el7 base 190 k libquadmath-devel x86_64 4.8.5-39.el7 base 53 k libstdc++-devel x86_64 4.8.5-39.el7 base 1.5 M mokutil x86_64 15-2.el7.centos base 42 k mpfr x86_64 3.1.1-4.el7 base 203 k neon x86_64 0.30.0-4.el7 base 166 k nettle x86_64 2.7.1-8.el7 base 327 k pakchois x86_64 0.4-10.el7 base 14 k perl-Error noarch 1:0.17020-2.el7 base 32 k perl-Git noarch 1.8.3.1-20.el7 base 55 k perl-TermReadKey x86_64 2.30-20.el7 base 31 k perl-Thread-Queue noarch 3.02-2.el7 base 17 k perl-XML-Parser x86_64 2.41-10.el7 base 223 k perl-srpm-macros noarch 1-8.el7 base 4.6 k python-srpm-macros noarch 3-32.el7 base 8.4 k rsync x86_64 3.1.2-6.el7_6.1 base 404 k subversion-libs x86_64 1.7.14-14.el7 base 922 k systemtap-client x86_64 4.0-10.el7_7 updates 3.6 M systemtap-devel x86_64 4.0-10.el7_7 updates 2.2 M systemtap-runtime x86_64 4.0-10.el7_7 updates 443 k trousers x86_64 0.3.14-2.el7 base 289 k Updating for dependencies: elfutils-libelf x86_64 0.176-2.el7 base 194 k elfutils-libs x86_64 0.176-2.el7 base 291 k libgcc x86_64 4.8.5-39.el7 base 102 k libgomp x86_64 4.8.5-39.el7 base 158 k libstdc++ x86_64 4.8.5-39.el7 base 305 k rpm x86_64 4.11.3-40.el7 base 1.2 M rpm-build-libs x86_64 4.11.3-40.el7 base 107 k rpm-libs x86_64 4.11.3-40.el7 base 278 k rpm-python x86_64 4.11.3-40.el7 base 83 k Transaction Summary ============================================================================================================================================================================ Install 25 Packages (+39 Dependent packages) Upgrade ( 9 Dependent packages) Total download size: 90 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/73): bison-3.0.4-2.el7.x86_64.rpm | 674 kB 00:00:00 (2/73): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:00:00 (3/73): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:00 (4/73): boost-system-1.53.0-27.el7.x86_64.rpm | 40 kB 00:00:00 (5/73): boost-date-time-1.53.0-27.el7.x86_64.rpm | 52 kB 00:00:00 (6/73): byacc-1.9.20130304-3.el7.x86_64.rpm | 65 kB 00:00:00 (7/73): bzip2-1.0.6-13.el7.x86_64.rpm | 52 kB 00:00:00 (8/73): boost-thread-1.53.0-27.el7.x86_64.rpm | 57 kB 00:00:00 (9/73): cscope-15.8-10.el7.x86_64.rpm | 203 kB 00:00:00 (10/73): ctags-5.8-13.el7.x86_64.rpm | 155 kB 00:00:00 (11/73): diffstat-1.57-4.el7.x86_64.rpm | 35 kB 00:00:00 (12/73): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:00 (13/73): efivar-libs-36-12.el7.x86_64.rpm | 88 kB 00:00:00 (14/73): cpp-4.8.5-39.el7.x86_64.rpm | 5.9 MB 00:00:00 (15/73): elfutils-0.176-2.el7.x86_64.rpm | 305 kB 00:00:00 (16/73): elfutils-libs-0.176-2.el7.x86_64.rpm | 291 kB 00:00:00 (17/73): elfutils-libelf-0.176-2.el7.x86_64.rpm | 194 kB 00:00:00 (18/73): dyninst-9.3.1-3.el7.x86_64.rpm | 3.5 MB 00:00:00 (19/73): flex-2.5.37-6.el7.x86_64.rpm | 293 kB 00:00:00 (20/73): doxygen-1.8.5-3.el7.x86_64.rpm | 3.6 MB 00:00:01 (21/73): gcc-gfortran-4.8.5-39.el7.x86_64.rpm | 6.7 MB 00:00:01 (22/73): gettext-common-devel-0.19.8.1-2.el7.noarch.rpm | 410 kB 00:00:00 (23/73): gdb-7.6.1-115.el7.x86_64.rpm | 2.4 MB 00:00:00 (24/73): gettext-devel-0.19.8.1-2.el7.x86_64.rpm | 320 kB 00:00:00 (25/73): indent-2.2.11-13.el7.x86_64.rpm | 150 kB 00:00:00 (26/73): gnutls-3.3.29-9.el7_6.x86_64.rpm | 680 kB 00:00:00 (27/73): intltool-0.50.2-7.el7.noarch.rpm | 59 kB 00:00:00 (28/73): gcc-4.8.5-39.el7.x86_64.rpm | 16 MB 00:00:03 (29/73): libdwarf-20130207-4.el7.x86_64.rpm | 109 kB 00:00:00 (30/73): libgcc-4.8.5-39.el7.x86_64.rpm | 102 kB 00:00:00 (31/73): libgomp-4.8.5-39.el7.x86_64.rpm | 158 kB 00:00:00 (32/73): libmodman-2.0.1-8.el7.x86_64.rpm | 28 kB 00:00:00 (33/73): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00 (34/73): libproxy-0.4.11-11.el7.x86_64.rpm | 64 kB 00:00:00 (35/73): libquadmath-4.8.5-39.el7.x86_64.rpm | 190 kB 00:00:00 (36/73): libquadmath-devel-4.8.5-39.el7.x86_64.rpm | 53 kB 00:00:00 (37/73): libstdc++-4.8.5-39.el7.x86_64.rpm | 305 kB 00:00:00 (38/73): libgfortran-4.8.5-39.el7.x86_64.rpm | 300 kB 00:00:00 (39/73): libstdc++-devel-4.8.5-39.el7.x86_64.rpm | 1.5 MB 00:00:00 (40/73): mokutil-15-2.el7.centos.x86_64.rpm | 42 kB 00:00:00 (41/73): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00 (42/73): neon-0.30.0-4.el7.x86_64.rpm | 166 kB 00:00:00 (43/73): nettle-2.7.1-8.el7.x86_64.rpm | 327 kB 00:00:00 (44/73): pakchois-0.4-10.el7.x86_64.rpm | 14 kB 00:00:00 (45/73): patchutils-0.3.3-4.el7.x86_64.rpm | 104 kB 00:00:00 (46/73): libtool-2.4.2-22.el7_3.x86_64.rpm | 588 kB 00:00:00 (47/73): perl-Git-1.8.3.1-20.el7.noarch.rpm | 55 kB 00:00:00 (48/73): perl-TermReadKey-2.30-20.el7.x86_64.rpm | 31 kB 00:00:00 (49/73): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00:00 (50/73): perl-Error-0.17020-2.el7.noarch.rpm | 32 kB 00:00:00 (51/73): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:00 (52/73): python-srpm-macros-3-32.el7.noarch.rpm | 8.4 kB 00:00:00 (53/73): perl-XML-Parser-2.41-10.el7.x86_64.rpm | 223 kB 00:00:00 (54/73): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00 (55/73): rcs-5.9.0-5.el7.x86_64.rpm | 230 kB 00:00:00 (56/73): rpm-build-4.11.3-40.el7.x86_64.rpm | 149 kB 00:00:00 (57/73): rpm-build-libs-4.11.3-40.el7.x86_64.rpm | 107 kB 00:00:00 (58/73): rpm-libs-4.11.3-40.el7.x86_64.rpm | 278 kB 00:00:00 (59/73): rpm-python-4.11.3-40.el7.x86_64.rpm | 83 kB 00:00:00 (60/73): rpm-sign-4.11.3-40.el7.x86_64.rpm | 48 kB 00:00:00 (61/73): rsync-3.1.2-6.el7_6.1.x86_64.rpm | 404 kB 00:00:00 (62/73): subversion-1.7.14-14.el7.x86_64.rpm | 1.0 MB 00:00:00 (63/73): subversion-libs-1.7.14-14.el7.x86_64.rpm | 922 kB 00:00:00 (64/73): swig-2.0.10-5.el7.x86_64.rpm | 1.3 MB 00:00:00 (65/73): systemtap-4.0-10.el7_7.x86_64.rpm | 15 kB 00:00:00 (66/73): rpm-4.11.3-40.el7.x86_64.rpm | 1.2 MB 00:00:01 (67/73): systemtap-client-4.0-10.el7_7.x86_64.rpm | 3.6 MB 00:00:00 (68/73): systemtap-runtime-4.0-10.el7_7.x86_64.rpm | 443 kB 00:00:00 (69/73): trousers-0.3.14-2.el7.x86_64.rpm | 289 kB 00:00:00 (70/73): kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64.rpm | 18 MB 00:00:04 (71/73): systemtap-devel-4.0-10.el7_7.x86_64.rpm | 2.2 MB 00:00:00 (72/73): git-1.8.3.1-20.el7.x86_64.rpm | 4.4 MB 00:00:05 (73/73): gcc-c++-4.8.5-39.el7.x86_64.rpm | 7.2 MB 00:00:08 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 10 MB/s | 90 MB 00:00:08 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libgcc-4.8.5-39.el7.x86_64 1/82 Updating : libstdc++-4.8.5-39.el7.x86_64 2/82 Updating : elfutils-libelf-0.176-2.el7.x86_64 3/82 Updating : rpm-4.11.3-40.el7.x86_64 4/82 Updating : rpm-libs-4.11.3-40.el7.x86_64 5/82 Installing : mpfr-3.1.1-4.el7.x86_64 6/82 Installing : libmpc-1.0.1-3.el7.x86_64 7/82 Updating : rpm-build-libs-4.11.3-40.el7.x86_64 8/82 Updating : elfutils-libs-0.176-2.el7.x86_64 9/82 Installing : libquadmath-4.8.5-39.el7.x86_64 10/82 Installing : boost-system-1.53.0-27.el7.x86_64 11/82 Installing : autoconf-2.69-11.el7.noarch 12/82 Installing : 1:perl-Error-0.17020-2.el7.noarch 13/82 Installing : perl-Thread-Queue-3.02-2.el7.noarch 14/82 Installing : automake-1.13.4-3.el7.noarch 15/82 Installing : boost-thread-1.53.0-27.el7.x86_64 16/82 Installing : libgfortran-4.8.5-39.el7.x86_64 17/82 Installing : elfutils-0.176-2.el7.x86_64 18/82 Installing : cpp-4.8.5-39.el7.x86_64 19/82 Installing : dwz-0.11-3.el7.x86_64 20/82 Installing : libdwarf-20130207-4.el7.x86_64 21/82 Installing : libstdc++-devel-4.8.5-39.el7.x86_64 22/82 Installing : libmodman-2.0.1-8.el7.x86_64 23/82 Installing : libproxy-0.4.11-11.el7.x86_64 24/82 Installing : boost-date-time-1.53.0-27.el7.x86_64 25/82 Installing : dyninst-9.3.1-3.el7.x86_64 26/82 Installing : systemtap-runtime-4.0-10.el7_7.x86_64 27/82 Installing : gdb-7.6.1-115.el7.x86_64 28/82 Installing : perl-srpm-macros-1-8.el7.noarch 29/82 Installing : pakchois-0.4-10.el7.x86_64 30/82 Installing : efivar-libs-36-12.el7.x86_64 31/82 Installing : mokutil-15-2.el7.centos.x86_64 32/82 Installing : systemtap-client-4.0-10.el7_7.x86_64 33/82 Installing : perl-TermReadKey-2.30-20.el7.x86_64 34/82 Installing : bzip2-1.0.6-13.el7.x86_64 35/82 Installing : python-srpm-macros-3-32.el7.noarch 36/82 Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 37/82 Updating : libgomp-4.8.5-39.el7.x86_64 38/82 Installing : gcc-4.8.5-39.el7.x86_64 39/82 Installing : libquadmath-devel-4.8.5-39.el7.x86_64 40/82 Installing : gettext-common-devel-0.19.8.1-2.el7.noarch 41/82 Installing : nettle-2.7.1-8.el7.x86_64 42/82 Installing : perl-XML-Parser-2.41-10.el7.x86_64 43/82 Installing : kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64 44/82 Installing : systemtap-devel-4.0-10.el7_7.x86_64 45/82 Installing : trousers-0.3.14-2.el7.x86_64 46/82 Installing : gnutls-3.3.29-9.el7_6.x86_64 47/82 Installing : neon-0.30.0-4.el7.x86_64 48/82 Installing : subversion-libs-1.7.14-14.el7.x86_64 49/82 Installing : rsync-3.1.2-6.el7_6.1.x86_64 50/82 Installing : perl-Git-1.8.3.1-20.el7.noarch 51/82 Installing : git-1.8.3.1-20.el7.x86_64 52/82 Installing : gettext-devel-0.19.8.1-2.el7.x86_64 53/82 Installing : intltool-0.50.2-7.el7.noarch 54/82 Installing : subversion-1.7.14-14.el7.x86_64 55/82 Installing : systemtap-4.0-10.el7_7.x86_64 56/82 Installing : gcc-gfortran-4.8.5-39.el7.x86_64 57/82 Installing : libtool-2.4.2-22.el7_3.x86_64 58/82 Installing : gcc-c++-4.8.5-39.el7.x86_64 59/82 Installing : rpm-build-4.11.3-40.el7.x86_64 60/82 Updating : rpm-python-4.11.3-40.el7.x86_64 61/82 Installing : rpm-sign-4.11.3-40.el7.x86_64 62/82 Installing : 1:doxygen-1.8.5-3.el7.x86_64 63/82 Installing : swig-2.0.10-5.el7.x86_64 64/82 Installing : diffstat-1.57-4.el7.x86_64 65/82 Installing : bison-3.0.4-2.el7.x86_64 66/82 Installing : cscope-15.8-10.el7.x86_64 67/82 Installing : patchutils-0.3.3-4.el7.x86_64 68/82 Installing : flex-2.5.37-6.el7.x86_64 69/82 Installing : indent-2.2.11-13.el7.x86_64 70/82 Installing : rcs-5.9.0-5.el7.x86_64 71/82 Installing : byacc-1.9.20130304-3.el7.x86_64 72/82 Installing : ctags-5.8-13.el7.x86_64 73/82 Cleanup : rpm-python-4.11.3-35.el7.x86_64 74/82 Cleanup : rpm-build-libs-4.11.3-35.el7.x86_64 75/82 Cleanup : rpm-4.11.3-35.el7.x86_64 76/82 Cleanup : rpm-libs-4.11.3-35.el7.x86_64 77/82 Cleanup : elfutils-libs-0.172-2.el7.x86_64 78/82 Cleanup : libstdc++-4.8.5-36.el7.x86_64 79/82 Cleanup : libgcc-4.8.5-36.el7.x86_64 80/82 Cleanup : elfutils-libelf-0.172-2.el7.x86_64 81/82 Cleanup : libgomp-4.8.5-36.el7.x86_64 82/82 Verifying : rsync-3.1.2-6.el7_6.1.x86_64 1/82 Verifying : trousers-0.3.14-2.el7.x86_64 2/82 Verifying : ctags-5.8-13.el7.x86_64 3/82 Verifying : subversion-libs-1.7.14-14.el7.x86_64 4/82 Verifying : kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64 5/82 Verifying : perl-XML-Parser-2.41-10.el7.x86_64 6/82 Verifying : gettext-devel-0.19.8.1-2.el7.x86_64 7/82 Verifying : mpfr-3.1.1-4.el7.x86_64 8/82 Verifying : byacc-1.9.20130304-3.el7.x86_64 9/82 Verifying : libgfortran-4.8.5-39.el7.x86_64 10/82 Verifying : nettle-2.7.1-8.el7.x86_64 11/82 Verifying : boost-system-1.53.0-27.el7.x86_64 12/82 Verifying : automake-1.13.4-3.el7.noarch 13/82 Verifying : gcc-4.8.5-39.el7.x86_64 14/82 Verifying : libstdc++-devel-4.8.5-39.el7.x86_64 15/82 Verifying : libstdc++-4.8.5-39.el7.x86_64 16/82 Verifying : 1:doxygen-1.8.5-3.el7.x86_64 17/82 Verifying : dyninst-9.3.1-3.el7.x86_64 18/82 Verifying : rpm-build-libs-4.11.3-40.el7.x86_64 19/82 Verifying : subversion-1.7.14-14.el7.x86_64 20/82 Verifying : systemtap-4.0-10.el7_7.x86_64 21/82 Verifying : boost-thread-1.53.0-27.el7.x86_64 22/82 Verifying : perl-Thread-Queue-3.02-2.el7.noarch 23/82 Verifying : gettext-common-devel-0.19.8.1-2.el7.noarch 24/82 Verifying : perl-Git-1.8.3.1-20.el7.noarch 25/82 Verifying : libgcc-4.8.5-39.el7.x86_64 26/82 Verifying : libgomp-4.8.5-39.el7.x86_64 27/82 Verifying : intltool-0.50.2-7.el7.noarch 28/82 Verifying : gnutls-3.3.29-9.el7_6.x86_64 29/82 Verifying : rcs-5.9.0-5.el7.x86_64 30/82 Verifying : swig-2.0.10-5.el7.x86_64 31/82 Verifying : python-srpm-macros-3-32.el7.noarch 32/82 Verifying : libtool-2.4.2-22.el7_3.x86_64 33/82 Verifying : libmodman-2.0.1-8.el7.x86_64 34/82 Verifying : gcc-c++-4.8.5-39.el7.x86_64 35/82 Verifying : rpm-python-4.11.3-40.el7.x86_64 36/82 Verifying : libproxy-0.4.11-11.el7.x86_64 37/82 Verifying : rpm-build-4.11.3-40.el7.x86_64 38/82 Verifying : 1:perl-Error-0.17020-2.el7.noarch 39/82 Verifying : indent-2.2.11-13.el7.x86_64 40/82 Verifying : git-1.8.3.1-20.el7.x86_64 41/82 Verifying : bzip2-1.0.6-13.el7.x86_64 42/82 Verifying : gcc-gfortran-4.8.5-39.el7.x86_64 43/82 Verifying : systemtap-client-4.0-10.el7_7.x86_64 44/82 Verifying : flex-2.5.37-6.el7.x86_64 45/82 Verifying : rpm-libs-4.11.3-40.el7.x86_64 46/82 Verifying : libmpc-1.0.1-3.el7.x86_64 47/82 Verifying : libquadmath-devel-4.8.5-39.el7.x86_64 48/82 Verifying : systemtap-runtime-4.0-10.el7_7.x86_64 49/82 Verifying : patchutils-0.3.3-4.el7.x86_64 50/82 Verifying : systemtap-devel-4.0-10.el7_7.x86_64 51/82 Verifying : cscope-15.8-10.el7.x86_64 52/82 Verifying : bison-3.0.4-2.el7.x86_64 53/82 Verifying : mokutil-15-2.el7.centos.x86_64 54/82 Verifying : autoconf-2.69-11.el7.noarch 55/82 Verifying : elfutils-0.176-2.el7.x86_64 56/82 Verifying : perl-TermReadKey-2.30-20.el7.x86_64 57/82 Verifying : rpm-4.11.3-40.el7.x86_64 58/82 Verifying : elfutils-libs-0.176-2.el7.x86_64 59/82 Verifying : libquadmath-4.8.5-39.el7.x86_64 60/82 Verifying : cpp-4.8.5-39.el7.x86_64 61/82 Verifying : boost-date-time-1.53.0-27.el7.x86_64 62/82 Verifying : gdb-7.6.1-115.el7.x86_64 63/82 Verifying : dwz-0.11-3.el7.x86_64 64/82 Verifying : efivar-libs-36-12.el7.x86_64 65/82 Verifying : diffstat-1.57-4.el7.x86_64 66/82 Verifying : elfutils-libelf-0.176-2.el7.x86_64 67/82 Verifying : pakchois-0.4-10.el7.x86_64 68/82 Verifying : neon-0.30.0-4.el7.x86_64 69/82 Verifying : rpm-sign-4.11.3-40.el7.x86_64 70/82 Verifying : perl-srpm-macros-1-8.el7.noarch 71/82 Verifying : libdwarf-20130207-4.el7.x86_64 72/82 Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 73/82 Verifying : rpm-python-4.11.3-35.el7.x86_64 74/82 Verifying : libgcc-4.8.5-36.el7.x86_64 75/82 Verifying : elfutils-libelf-0.172-2.el7.x86_64 76/82 Verifying : rpm-libs-4.11.3-35.el7.x86_64 77/82 Verifying : libstdc++-4.8.5-36.el7.x86_64 78/82 Verifying : rpm-4.11.3-35.el7.x86_64 79/82 Verifying : rpm-build-libs-4.11.3-35.el7.x86_64 80/82 Verifying : libgomp-4.8.5-36.el7.x86_64 81/82 Verifying : elfutils-libs-0.172-2.el7.x86_64 82/82 Installed: autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7 bison.x86_64 0:3.0.4-2.el7 byacc.x86_64 0:1.9.20130304-3.el7 cscope.x86_64 0:15.8-10.el7 ctags.x86_64 0:5.8-13.el7 diffstat.x86_64 0:1.57-4.el7 doxygen.x86_64 1:1.8.5-3.el7 elfutils.x86_64 0:0.176-2.el7 flex.x86_64 0:2.5.37-6.el7 gcc.x86_64 0:4.8.5-39.el7 gcc-c++.x86_64 0:4.8.5-39.el7 gcc-gfortran.x86_64 0:4.8.5-39.el7 git.x86_64 0:1.8.3.1-20.el7 indent.x86_64 0:2.2.11-13.el7 intltool.noarch 0:0.50.2-7.el7 libtool.x86_64 0:2.4.2-22.el7_3 patchutils.x86_64 0:0.3.3-4.el7 rcs.x86_64 0:5.9.0-5.el7 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos rpm-build.x86_64 0:4.11.3-40.el7 rpm-sign.x86_64 0:4.11.3-40.el7 subversion.x86_64 0:1.7.14-14.el7 swig.x86_64 0:2.0.10-5.el7 systemtap.x86_64 0:4.0-10.el7_7 Dependency Installed: boost-date-time.x86_64 0:1.53.0-27.el7 boost-system.x86_64 0:1.53.0-27.el7 boost-thread.x86_64 0:1.53.0-27.el7 bzip2.x86_64 0:1.0.6-13.el7 cpp.x86_64 0:4.8.5-39.el7 dwz.x86_64 0:0.11-3.el7 dyninst.x86_64 0:9.3.1-3.el7 efivar-libs.x86_64 0:36-12.el7 gdb.x86_64 0:7.6.1-115.el7 gettext-common-devel.noarch 0:0.19.8.1-2.el7 gettext-devel.x86_64 0:0.19.8.1-2.el7 gnutls.x86_64 0:3.3.29-9.el7_6 kernel-debug-devel.x86_64 0:3.10.0-1062.9.1.el7 libdwarf.x86_64 0:20130207-4.el7 libgfortran.x86_64 0:4.8.5-39.el7 libmodman.x86_64 0:2.0.1-8.el7 libmpc.x86_64 0:1.0.1-3.el7 libproxy.x86_64 0:0.4.11-11.el7 libquadmath.x86_64 0:4.8.5-39.el7 libquadmath-devel.x86_64 0:4.8.5-39.el7 libstdc++-devel.x86_64 0:4.8.5-39.el7 mokutil.x86_64 0:15-2.el7.centos mpfr.x86_64 0:3.1.1-4.el7 neon.x86_64 0:0.30.0-4.el7 nettle.x86_64 0:2.7.1-8.el7 pakchois.x86_64 0:0.4-10.el7 perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-20.el7 perl-TermReadKey.x86_64 0:2.30-20.el7 perl-Thread-Queue.noarch 0:3.02-2.el7 perl-XML-Parser.x86_64 0:2.41-10.el7 perl-srpm-macros.noarch 0:1-8.el7 python-srpm-macros.noarch 0:3-32.el7 rsync.x86_64 0:3.1.2-6.el7_6.1 subversion-libs.x86_64 0:1.7.14-14.el7 systemtap-client.x86_64 0:4.0-10.el7_7 systemtap-devel.x86_64 0:4.0-10.el7_7 systemtap-runtime.x86_64 0:4.0-10.el7_7 trousers.x86_64 0:0.3.14-2.el7 Dependency Updated: elfutils-libelf.x86_64 0:0.176-2.el7 elfutils-libs.x86_64 0:0.176-2.el7 libgcc.x86_64 0:4.8.5-39.el7 libgomp.x86_64 0:4.8.5-39.el7 libstdc++.x86_64 0:4.8.5-39.el7 rpm.x86_64 0:4.11.3-40.el7 rpm-build-libs.x86_64 0:4.11.3-40.el7 rpm-libs.x86_64 0:4.11.3-40.el7 rpm-python.x86_64 0:4.11.3-40.el7 Complete! [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# yum -y install php-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn Resolving Dependencies --> Running transaction check ---> Package php-devel.x86_64 0:5.4.16-46.1.el7_7 will be installed --> Processing Dependency: pcre-devel(x86-64) for package: php-devel-5.4.16-46.1.el7_7.x86_64 --> Running transaction check ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing: php-devel x86_64 5.4.16-46.1.el7_7 updates 602 k Installing for dependencies: pcre-devel x86_64 8.32-17.el7 base 480 k Transaction Summary ============================================================================================================================================================================ Install 1 Package (+1 Dependent package) Total download size: 1.1 M Installed size: 5.4 M Downloading packages: (1/2): php-devel-5.4.16-46.1.el7_7.x86_64.rpm | 602 kB 00:00:00 (2/2): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 1.1 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : pcre-devel-8.32-17.el7.x86_64 1/2 Installing : php-devel-5.4.16-46.1.el7_7.x86_64 2/2 Verifying : pcre-devel-8.32-17.el7.x86_64 1/2 Verifying : php-devel-5.4.16-46.1.el7_7.x86_64 2/2 Installed: php-devel.x86_64 0:5.4.16-46.1.el7_7 Dependency Installed: pcre-devel.x86_64 0:8.32-17.el7 Complete! [root@node101.yinzhengjie.org.cn ~]#
4>.解壓xcache軟件包並查看官方的安裝文檔
[root@node101.yinzhengjie.org.cn ~]# ll total 172 -rw-r--r-- 1 root root 173368 Oct 24 08:50 xcache-3.2.0.tar.gz [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# tar xf xcache-3.2.0.tar.gz [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# ll total 176 drwxrwxr-x 17 1027 513 4096 Sep 19 2014 xcache-3.2.0 -rw-r--r-- 1 root root 173368 Oct 24 08:50 xcache-3.2.0.tar.gz [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# cd xcache-3.2.0 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ls AUTHORS config.w32 htdocs Makefile.frag mod_coverager mod_optimizer run-xcachetest xcache xcache.ini bin COPYING includes.c Makefile.frag.deps mod_decoder NEWS tests xcache.c xcache-test.ini ChangeLog devel INSTALL mod_assembler mod_disassembler processor THANKS xcache_globals.h xcache-zh-gb2312.ini config.m4 gen_structinfo.awk lib mod_cacher mod_encoder README util xcache.h [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# cat INSTALL #查看官網的安裝文檔 # vim:ts=4:sw=4 Installtion: $ phpize --clean && phpize $ ./configure --help $ CFLAGS='your cflags' ./configure --enable-xcache --enable... $ make $ su # make install (update php.ini, restart php) Reinstall: $ mv config.nice conf $ make distclean && phpize --clean && phpize $ mv conf config.nice $ ./config.nice $ make $ su # make install (update php.ini, restart php) Update php.ini: $ su # cat xcache.ini >> /etc/php.ini # $EDITOR /etc/php.ini [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
5>.編譯安裝xcache
[root@node101.yinzhengjie.org.cn ~]# cd xcache-3.2.0 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ls AUTHORS config.w32 htdocs Makefile.frag mod_coverager mod_optimizer run-xcachetest xcache xcache.ini bin COPYING includes.c Makefile.frag.deps mod_decoder NEWS tests xcache.c xcache-test.ini ChangeLog devel INSTALL mod_assembler mod_disassembler processor THANKS xcache_globals.h xcache-zh-gb2312.ini config.m4 gen_structinfo.awk lib mod_cacher mod_encoder README util xcache.h [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# which phpize /usr/bin/phpize [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# rpm -qf /usr/bin/phpize php-cli-5.4.16-46.1.el7_7.x86_64 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# phpize #執行改命令會多出來configure腳本 Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ls acinclude.m4 build config.sub devel install-sh Makefile.global mod_coverager NEWS tests xcache_globals.h aclocal.m4 ChangeLog configure gen_structinfo.awk lib missing mod_decoder processor THANKS xcache.h AUTHORS config.guess configure.in htdocs ltmain.sh mkinstalldirs mod_disassembler README util xcache.ini autom4te.cache config.h.in config.w32 includes.c Makefile.frag mod_assembler mod_encoder run-tests.php xcache xcache-test.ini bin config.m4 COPYING INSTALL Makefile.frag.deps mod_cacher mod_optimizer run-xcachetest xcache.c xcache-zh-gb2312.ini [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ./configure --help `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] Optional Features and Packages: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libdir=NAME Look for libraries in .../NAME rather than .../lib --with-php-config=PATH Path to php-config php-config --enable-xcache XCache Extension. --enable-xcache-constant XCache: Handle new constants made by php compiler (e.g.: for __halt_compiler) --enable-xcache-optimizer XCache: (N/A) --enable-xcache-coverager XCache: Enable code coverage dumper, useful for testing php scripts --enable-xcache-assembler XCache: (N/A) --enable-xcache-disassembler XCache: Enable opcode to php variable dumper, not for server usage --enable-xcache-encoder XCache: (N/A) --enable-xcache-decoder XCache: (N/A) --enable-xcache-test XCache: Enable self test - FOR DEVELOPERS ONLY!! --enable-xcache-dprint XCache: Enable debug print functions - FOR DEVELOPERS ONLY!! --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --disable-libtool-lock avoid locking (might break parallel builds) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ./configure --prefix=/yinzhengjie/softwares/xcache --enable-xcache checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/l ibchecking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for XCache support... yes, shared checking for XCache handle of compile time constant... yes checking for XCache optimizer... no checking for XCache coverager... no checking for XCache assembler... no checking for XCache disassembler... no checking for XCache encoder... no checking for XCache decoder... no checking for XCache self test... no checking for XCache self test... no checking for gawk... /usr/bin/gawk checking for m4... /usr/bin/m4 checking for grep... (cached) /usr/bin/grep checking for sed... (cached) /usr/bin/sed checking for indent... /usr/bin/indent checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 158 Model name: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Stepping: 10 CPU MHz: 2208.004 BogoMIPS: 4416.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 9216K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase avx2 invpcid rdseed clflushopt flush_l1d[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# make -j 4 && make install cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/php/main -I/usr/inc lude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -E /root/xcache-3.2.0/includes.c -o ./includes.i/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/util/xc_stack.c -o util/xc_stack.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/util/xc_trace.c -o util/xc_trace.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_allocator.c -o xcache/xc_allocator.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/util/xc_stack.c -fPIC -DPIC -o util/.libs/xc_stack.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_allocator.c -fPIC -DPIC -o xcache/.libs/xc_allocator.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/util/xc_trace.c -fPIC -DPIC -o util/.libs/xc_trace.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_allocator_bestfit.c -o xcache/xc_allocator_bestfit.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_compatibility.c -o xcache/xc_compatibility.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_compatibility.c -fPIC -DPIC -o xcache/.libs/xc_compatibility.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_allocator_bestfit.c -fPIC -DPIC -o xcache/.libs/xc_allocator_bestfit.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_const_string.c -o xcache/xc_const_string.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_extension.c -o xcache/xc_extension.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_const_string.c -fPIC -DPIC -o xcache/.libs/xc_const_string.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_extension.c -fPIC -DPIC -o xcache/.libs/xc_extension.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_ini.c -o xcache/xc_ini.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_mutex.c -o xcache/xc_mutex.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_ini.c -fPIC -DPIC -o xcache/.libs/xc_ini.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_opcode_spec.c -o xcache/xc_opcode_spec.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_mutex.c -fPIC -DPIC -o xcache/.libs/xc_mutex.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_sandbox.c -o xcache/xc_sandbox.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_opcode_spec.c -fPIC -DPIC -o xcache/.libs/xc_opcode_spec.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_sandbox.c -fPIC -DPIC -o xcache/.libs/xc_sandbox.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_shm.c -o xcache/xc_shm.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_shm_mmap.c -o xcache/xc_shm_mmap.lo /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_utils.c -o xcache/xc_utils.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_shm_mmap.c -fPIC -DPIC -o xcache/.libs/xc_shm_mmap.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_utils.c -fPIC -DPIC -o xcache/.libs/xc_utils.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_shm.c -fPIC -DPIC -o xcache/.libs/xc_shm.o./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it LANG=C /usr/bin/gawk -f /root/xcache-3.2.0/gen_structinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv ./structinfo.m4.tmp ./structinfo.m4 /usr/bin/m4 -B 102400 -D srcdir='`'"/root/xcache-3.2.0'" -D builddir='`'".'" /root/xcache-3.2.0/processor/main.m4 > ./processor.out.c.tmp /usr/bin/m4: warning: `m4 -B' may be removed in a future release AUTOCHECK INFO: runtime autocheck Disabled (optimized build) AUTOCHECK INFO: zend_compiled_variable: processor looks good AUTOCHECK INFO: zend_try_catch_element: processor looks good AUTOCHECK INFO: zend_brk_cont_element: processor looks good AUTOCHECK INFO: HashTable: processor looks good AUTOCHECK WARN: zend_ast: missing structinfo, dont panic AUTOCHECK INFO: zval: processor looks good AUTOCHECK INFO: zend_arg_info: processor looks good AUTOCHECK INFO: zend_constant: processor looks good AUTOCHECK INFO: zend_property_info: processor looks good AUTOCHECK INFO: zend_trait_method_reference: processor looks good AUTOCHECK INFO: zend_trait_alias: processor looks good AUTOCHECK INFO: zend_trait_precedence: processor looks good AUTOCHECK INFO: zend_class_entry: processor looks good AUTOCHECK INFO: znode: processor looks good AUTOCHECK INFO: zend_op: processor looks good AUTOCHECK INFO: zend_literal: processor looks good AUTOCHECK INFO: zend_op_array: processor looks good AUTOCHECK INFO: xc_constinfo_t: processor looks good AUTOCHECK INFO: xc_op_array_info_detail_t: processor looks good AUTOCHECK INFO: xc_op_array_info_t: processor looks good AUTOCHECK INFO: xc_funcinfo_t: processor looks good AUTOCHECK INFO: xc_classinfo_t: processor looks good AUTOCHECK INFO: xc_autoglobal_t: processor looks good AUTOCHECK INFO: xc_compilererror_t: processor looks good AUTOCHECK INFO: xc_entry_data_php_t: processor looks good AUTOCHECK INFO: xc_entry_t: processor looks good AUTOCHECK INFO: xc_entry_php_t: processor looks good AUTOCHECK INFO: xc_entry_var_t: processor looks good mv ./processor.out.c.tmp ./processor.out.c /usr/bin/grep "export: " ./processor.out.c | /usr/bin/sed "s/.*export:\(.*\):export.*/\1/g" > ./xc_processor.h /usr/bin/indent -kr --use-tabs --tab-size 4 -sob -nce -l 160 < ./xc_processor.h > ./xc_processor.h.tmp && mv ./xc_processor.h.tmp ./xc_processor.h /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache.c -o xcache.lo cp ./processor.out.c ./xc_processor.c.h /bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/mod_cacher/xc_cacher.c -o mod_cacher/xc_cacher.lo /usr/bin/indent -kr --use-tabs --tab-size 4 -sob -nce -l 160 < ./processor.out.c > ./xc_processor.c.h.tmp && mv ./xc_processor.c.h.tmp ./xc_processor.c.h libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/mod_cacher/xc_cacher.c -fPIC -DPIC -o mod_cacher/.libs/xc_cacher.olibtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache.c -fPIC -DPIC -o .libs/xcache.o/bin/sh /root/xcache-3.2.0/libtool --mode=compile cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I /usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_processor.c -o xcache/xc_processor.lo libtool: compile: cc -I. -I/root/xcache-3.2.0 -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/include/ php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xcache-3.2.0/xcache/xc_processor.c -fPIC -DPIC -o xcache/.libs/xc_processor.o/bin/sh /root/xcache-3.2.0/libtool --mode=link cc -DPHP_ATOM_INC -I/root/xcache-3.2.0/include -I/root/xcache-3.2.0/main -I/root/xcache-3.2.0 -I/usr/include/php -I/usr/inclu de/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o xcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/xcache-3.2.0/modules xcache.lo util/xc_stack.lo util/xc_trace.lo xcache/xc_allocator.lo xcache/xc_allocator_bestfit.lo xcache/xc_compatibility.lo xcache/xc_const_string.lo xcache/xc_extension.lo xcache/xc_ini.lo xcache/xc_mutex.lo xcache/xc_opcode_spec.lo xcache/xc_processor.lo xcache/xc_sandbox.lo xcache/xc_shm.lo xcache/xc_shm_mmap.lo xcache/xc_utils.lo mod_cacher/xc_cacher.lo libtool: link: cc -shared -fPIC -DPIC .libs/xcache.o util/.libs/xc_stack.o util/.libs/xc_trace.o xcache/.libs/xc_allocator.o xcache/.libs/xc_allocator_bestfit.o xcache/.l ibs/xc_compatibility.o xcache/.libs/xc_const_string.o xcache/.libs/xc_extension.o xcache/.libs/xc_ini.o xcache/.libs/xc_mutex.o xcache/.libs/xc_opcode_spec.o xcache/.libs/xc_processor.o xcache/.libs/xc_sandbox.o xcache/.libs/xc_shm.o xcache/.libs/xc_shm_mmap.o xcache/.libs/xc_utils.o mod_cacher/.libs/xc_cacher.o -O2 -Wl,-soname -Wl,xcache.so -o .libs/xcache.solibtool: link: ( cd ".libs" && rm -f "xcache.la" && ln -s "../xcache.la" "xcache.la" ) /bin/sh /root/xcache-3.2.0/libtool --mode=install cp ./xcache.la /root/xcache-3.2.0/modules libtool: install: cp ./.libs/xcache.so /root/xcache-3.2.0/modules/xcache.so libtool: install: cp ./.libs/xcache.lai /root/xcache-3.2.0/modules/xcache.la libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/softwares/jdk1.8.0_201/bin:/root/bin:/home/softwares/mysql/bin/:/sbin" ldconfig -n /root/xcache-3.2.0/modules---------------------------------------------------------------------- Libraries have been installed in: /root/xcache-3.2.0/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. Installing shared extensions: /usr/lib64/php/modules/ [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ll /usr/lib64/php/modules/ #編譯完成會將模塊放在該目錄下,這個在編譯完成時會有相應的提示信息 total 4228 -rwxr-xr-x 1 root root 74688 Nov 2 00:06 curl.so -rwxr-xr-x 1 root root 2713384 Nov 2 00:06 fileinfo.so -rwxr-xr-x 1 root root 44704 Nov 2 00:06 json.so -rwxr-xr-x 1 root root 146064 Nov 2 00:06 mysqli.so -rwxr-xr-x 1 root root 57936 Nov 2 00:06 mysql.so -rwxr-xr-x 1 root root 33208 Nov 2 00:06 pdo_mysql.so -rwxr-xr-x 1 root root 116352 Nov 2 00:06 pdo.so -rwxr-xr-x 1 root root 29192 Nov 2 00:06 pdo_sqlite.so -rwxr-xr-x 1 root root 272024 Nov 2 00:06 phar.so -rwxr-xr-x 1 root root 51392 Nov 2 00:06 sqlite3.so -rwxr-xr-x 1 root root 700928 Dec 13 13:51 xcache.so -rwxr-xr-x 1 root root 58408 Nov 2 00:06 zip.so [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ll /usr/lib64/php/modules/ | grep xcache #過濾一下,咱們看到了xcache模塊就是我們新安裝的 -rwxr-xr-x 1 root root 700928 Dec 13 13:51 xcache.so [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ll /yinzhengjie/softwares/xcache #可是咱們發現除了安裝模塊沒有其它軟件存放啦,我們指定的安裝目錄也沒有自動生成 ls: cannot access /yinzhengjie/softwares/xcache: No such file or directory [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ls #安裝完成後還生成了"xcache.ini"對應php相關配置文件 acinclude.m4 config.h configure.in includes.i Makefile.frag.deps mod_coverager processor.out.c xcache xcache-zh-gb2312.ini aclocal.m4 config.h.in config.w32 INSTALL Makefile.fragments mod_decoder README xcache.c xc_processor.c.h AUTHORS config.log COPYING install-sh Makefile.global mod_disassembler run-tests.php xcache_globals.h xc_processor.h autom4te.cache config.m4 devel lib Makefile.objects mod_encoder run-xcachetest xcache.h bin config.nice gen_structinfo.awk libtool missing mod_optimizer structinfo.m4 xcache.ini build config.status htdocs ltmain.sh mkinstalldirs modules tests xcache.la ChangeLog config.sub include Makefile mod_assembler NEWS THANKS xcache.lo config.guess configure includes.c Makefile.frag mod_cacher processor util xcache-test.ini [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# cp xcache.ini /etc/php.d/ #將該配置文件拷貝到httpd未php存放配置文件的目錄 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ls /etc/php.d/ curl.ini fileinfo.ini json.ini mysqli.ini mysql.ini pdo.ini pdo_mysql.ini pdo_sqlite.ini phar.ini sqlite3.ini xcache.ini zip.ini [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# systemctl restart httpd #因爲修改了新的配置文件,咱們須要重啓加載配置文件,即加載xcache模塊 [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
6>.編寫php測試代碼,觀察xcache是否被正常加載
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# vim /var/www/html/phpinfo.php [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# cat /var/www/html/phpinfo.php <?php phpinfo(); ?> [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#
7>.再次對wordpress服務進行壓力測試,發現效果並不明顯
[root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]# ab -c 10 -n 200 http://node101.yinzhengjie.org.cn/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking node101.yinzhengjie.org.cn (be patient) Completed 100 requests Completed 200 requests Finished 200 requests Server Software: Apache/2.4.6 Server Hostname: node101.yinzhengjie.org.cn Server Port: 80 Document Path: / Document Length: 53802 bytes Concurrency Level: 10 Time taken for tests: 5.415 seconds Complete requests: 200 Failed requests: 0 Write errors: 0 Total transferred: 10814600 bytes HTML transferred: 10760400 bytes Requests per second: 36.94 [#/sec] (mean) #經過加速後,咱們發現效果提示仍是有的,基本上是在原來的基礎上翻倍的效果,爲加速前平均的每秒完成的請求速度是14個左右,而加速後每秒完成請求數變成了36個啦! Time per request: 270.742 [ms] (mean) Time per request: 27.074 [ms] (mean, across all concurrent requests) Transfer rate: 1950.40 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 119 263 43.9 265 377 Waiting: 95 226 40.5 227 346 Total: 119 264 43.9 265 377 Percentage of the requests served within a certain time (ms) 50% 265 66% 282 75% 293 80% 298 90% 324 95% 336 98% 357 99% 363 100% 377 (longest request) [root@node101.yinzhengjie.org.cn ~/xcache-3.2.0]#