2021-06-12

[root@localhost php-5.4.8]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL=’/usr/local/apr/build-1/libtool’ libphp5.la /usr/local/apache/modules
/usr/local/apr/build-1/libtool --mode=install install libphp5.la /usr/local/apache/modules/
libtool: install: install .libs/libphp5.so /usr/local/apache/modules/libphp5.so
libtool: install: install .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: warning: remember to run ‘libtool --finish /root/php-5.4.8/libs’
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5’ in /etc/httpd/httpd.conf]
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/php/man/man1/
Installing PHP CGI binary: /usr/local/php/bin/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/lib/php/
[PEAR] Archive_Tar - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.1
[PEAR] PEAR - installed: 1.9.4
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
/root/php-5.4.8/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
ln -s -f /usr/local/php/bin/phar.phar /usr/local/php/bin/phar
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
[root@localhost php-5.4.8]# cd
[root@localhost ~]# yum list php*
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
错误:没有匹配的软件包可以列出
[root@localhost ~]# yum list all php*
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
错误:没有匹配的软件包可以列出
[root@localhost ~]# yum install php
php-5.4.8/ php-odbc.x86_64 php-recode.x86_64
php-cli.x86_64 php-pdo.x86_64 php-soap.x86_64
php-common.x86_64 php-pear.noarch php.x86_64
php-gd.x86_64 php-pecl-memcache.x86_64 php-xmlrpc.x86_64
php-ldap.x86_64 php-pgsql.x86_64 php-xml.x86_64
php-mysql.x86_64 php-process.x86_64
[root@localhost ~]# yum install php-mysql.x86_64
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在解决依赖关系
–> 正在检查事务
—> 软件包 php-mysql.x86_64.0.5.4.16-45.el7 将被 安装
–> 正在处理依赖关系 php-pdo(x86-64) = 5.4.16-45.el7,它被软件包 php-mysql-5.4.16-45.el7.x86_64 需要
–> 正在检查事务
—> 软件包 php-pdo.x86_64.0.5.4.16-45.el7 将被 安装
–> 正在处理依赖关系 php-common(x86-64) = 5.4.16-45.el7,它被软件包 php-pdo-5.4.16-45.el7.x86_64 需要
–> 正在检查事务
—> 软件包 php-common.x86_64.0.5.4.16-45.el7 将被 安装
–> 正在处理依赖关系 libzip.so.2()(64bit),它被软件包 php-common-5.4.16-45.el7.x86_64 需要
–> 正在检查事务
—> 软件包 libzip.x86_64.0.0.10.1-8.el7 将被 安装
–> 解决依赖关系完成

依赖关系解决

=============================================================================================
Package 架构 版本 源 大小

正在安装:
php-mysql x86_64 5.4.16-45.el7 rhel7 101 k
为依赖而安装:
libzip x86_64 0.10.1-8.el7 rhel7 49 k
php-common x86_64 5.4.16-45.el7 rhel7 565 k
php-pdo x86_64 5.4.16-45.el7 rhel7 99 k

事务概要

安装 1 软件包 (+3 依赖软件包)

总下载量:814 k
安装大小:4.3 M
Is this ok [y/d/N]: y
Downloading packages:

总计 2.8 MB/s | 814 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : libzip-0.10.1-8.el7.x86_64 1/4
正在安装 : php-common-5.4.16-45.el7.x86_64 2/4
正在安装 : php-pdo-5.4.16-45.el7.x86_64 3/4
正在安装 : php-mysql-5.4.16-45.el7.x86_64 4/4
验证中 : php-pdo-5.4.16-45.el7.x86_64 1/4
验证中 : php-mysql-5.4.16-45.el7.x86_64 2/4
验证中 : libzip-0.10.1-8.el7.x86_64 3/4
验证中 : php-common-5.4.16-45.el7.x86_64 4/4

已安装:
php-mysql.x86_64 0:5.4.16-45.el7

作为依赖被安装:
libzip.x86_64 0:0.10.1-8.el7 php-common.x86_64 0:5.4.16-45.el7
php-pdo.x86_64 0:5.4.16-45.el7

完毕!
[root@localhost ~]# cd php-5.4.8/
[root@localhost php-5.4.8]# cp php.ini-production /etc/php.ini
cp:是否覆盖"/etc/php.ini"? y
[root@localhost php-5.4.8]# cd /etc/httpd/conf/
[root@localhost conf]# ll
总用量 28
-rw-r–r--. 1 root root 11813 6月 12 07:56 httpd.conf
-rw-r–r--. 1 root root 13077 1月 8 2018 magic
[root@localhost conf]# vim httpd.conf
[root@localhost conf]# cd
[root@localhost ~]# yum list all xcache
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
错误:没有匹配的软件包可以列出
[root@localhost ~]# yum install xcache
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
没有可用软件包 xcache。
错误:无须任何处理
[root@localhost ~]# wget http://xcache.lighttpd.net/pub/Releases/2.0.0/xcache-2.0.0.tar.gztar -zxvf xcache-2.0.0.tar.gzcd xcache-2.0.0/usr/local/php/bin/phpize./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-configmakemake test完成后,提示生成了xcache.so在/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/目录下。接着在php.ini中加入下面的内 容:[xcache-common]zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/xcache.so[xcache.admin]xcache.admin.user = "admin"xcache.admin.pass = “8a488a9ed9dc3634f70b421b06d835e5”[xcache]xcache.size = 64Mxcache.shm_scheme = "mmap"xcache.count = 2xcache.slots = 8Kxcache.ttl = 0xcache.gc_interval = 0xcache.var_size = 8Mxcache.var_count = 4xcache.var_slots = 8Kxcache.var_ttl = 0xcache.var_maxttl = 0xcache.var_gc_interval = 300xcache.test = Offxcache.readonly_protection = Onxcache.mmap_path = "/dev/shm/xcache"xcache.coredump_directory = ""xcache.cacher = Onxcache.stat = Onxcache.optimizer = Offxcache.coverager = Off
wget:无效选项 – z
wget:无效选项 – f
wget:无法识别的选项“–enable-xcache”
wget:无法识别的选项“–with-php-config=/usr/local/php/bin/php-configmakemake”
用法: wget [选项]… [URL]…

请尝试使用“wget --help”查看更多的选项。
[root@localhost ~]#
[root@localhost ~]# 作者:别打扰我我要学习
-bash: 作者:别打扰我我要学习: 未找到命令
[root@localhost ~]# 链接:https://www.imooc.com/article/35683
-bash: 链接:https://www.imooc.com/article/35683: 没有那个文件或目录
[root@localhost ~]# 来源:慕课网wget http://xcache.lighttpd.net/pub/Releases/2.0.0/xcache-2.0.0.tar.gztar -zxvf xcache-2.0.0.tar.gzcd xcache-2.0.0/usr/local/php/bin/phpize./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-configmakemake test
-bash: 来源:慕课网wget: 未找到命令
[root@localhost ~]# wget http://xcache.lighttpd.net/pub/Releases/2.0.0/xcache-2.0.0.tar.gztar -zxvf xcache-2.0.0.tar.gzcd xcache-2.0.0/usr/local/php/bin/phpize./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-configmakemake test
wget:无效选项 – z
wget:无效选项 – f
wget:无法识别的选项“–enable-xcache”
wget:无法识别的选项“–with-php-config=/usr/local/php/bin/php-configmakemake”
用法: wget [选项]… [URL]…

请尝试使用“wget --help”查看更多的选项。
[root@localhost ~]# wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
–2021-06-12 08:51:36-- http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
正在解析主机 xcache.lighttpd.net (xcache.lighttpd.net)… 2a01:4f8:161:80c9::2, 5.9.70.195
正在连接 xcache.lighttpd.net (xcache.lighttpd.net)|2a01:4f8:161:80c9::2|:80… 失败:网络不可达。
正在连接 xcache.lighttpd.net (xcache.lighttpd.net)|5.9.70.195|:80… 失败:网络不可达。
[root@localhost ~]#
Connection closed by foreign host.

Disconnected from remote host(mysq210) at 00:55:57.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值