- 浏览: 2539016 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (676)
- linux运维 (157)
- php (65)
- mysql (78)
- nginx (27)
- apche (18)
- framework (6)
- windows (9)
- IDE工具 (23)
- struts2 (7)
- java (13)
- 移动互联网 (14)
- memcache redis (23)
- shell基础/命令/语法 (37)
- shell (50)
- puppet (4)
- C (11)
- python (9)
- 产品经理 (27)
- Sphinx (4)
- svn (12)
- 设计构建 (12)
- 项目管理 (44)
- SEO (1)
- 网站架构 (26)
- 审时度势 (42)
- 网络 (14)
- 激发事业[书&视频] (81)
- 其它 (12)
- 摄影 (8)
- android (21)
最新评论
-
zhongmin2012:
原文的书在哪里
数据库水平切分的实现原理解析---分库,分表,主从,集群,负载均衡器 -
renzhengzhi:
你好,请问个问题,从master同步数据到slave的时候,s ...
数据库水平切分的实现原理解析---分库,分表,主从,集群,负载均衡器 -
ibc789:
你好,看了你的文章,我想请教个问题, 我在用 redis的时候 ...
redis 的两种持久化方式及原理 -
iijjll:
写得非常好
数据库水平切分的实现原理解析---分库,分表,主从,集群,负载均衡器 -
iijjll:
写得非常好
数据库水平切分的实现原理解析---分库,分表,主从,集群,负载均衡器
==================测试环境redhat 6.0 64bit
cmake 2.6 is the minimum version
g++/gcc 4.3 is the minimum version
Boost 1.37 is the minimum version
libicu 4.2 is the minimum version
tbb Intel's Thread Building Blocks
===64bit ====https://github.com/facebook/hiphop-php zhengdlwb@....
https://github.com/facebook/hiphop-php/issues
http://groups.google.com/group/hiphop-php-dev/
http://blog.liubijian.com/hiphop-php-install.html
http://www.ooso.net/archives/543
https://github.com/facebook/hiphop-php/wiki/building-and-installing
http://www.inanu.net/post/386.html
http://www.iteye.com/topic/1112434
http://www.oschina.net/question/54100_10698
http://www.ooso.net/archives/545
https://github.com/facebook/hiphop-php/wiki/using-nginx-as-front-server-to-hiphop Using nginx as front server to HipHop
http://www.joomlagate.com/article/joomla-review/hiphop-php-speed-up-joomla-websites/ HipHop PHP 或可提高 Joomla 网站运行效率达 50%?
====32bit====https://github.com/metagoto/hiphop-php
http://www.linuxidc.com/Linux/2011-04/35270.htm
======================================说明
不支持绝对路径
编译yii报错
编译wordpress成功
禁用非常用命令,如eval()
静态资源js,css,图片可用二级域名或一级域名匹配后缀走nginx/apache
前端80nginx,php访问分发到hiphop-php的服务上
hphp --input-dir=/tmp/aa/ --keep-tempdir=1 --log=3
./program -m server -p 8081
http://192.168.1.95:8081/a/1.php
http://192.168.1.95:8081/a2/2.php
=================================== 问题
???1 .如何编译两个不同根下的目录
cp -avx /tmp/{a,a2} /tmp/aa/
cp -avx {/tmp/a,/tmp/a2} /tmp/aa/
hphp --input-dir /tmp/{a,a2} --keep-tempdir=1 --log=3 不成功
??? 2. YII编译报错 hphp --input-dir=/tmp/yii/ --keep-tempdir=1 --log=3 --force=1
[root@XEN208_MS_HIPHOP_95 tmp]# hphp --input-dir=/tmp/yii/ --keep-tempdir=1 --log=3
running hphp...
creating temporary directory /tmp/hphp_8EI4PF ...
parsing inputs...
Unable to stat file /tmp/yii/framework/gii/components/Pear/Text/Diff/Renderer/Text/Diff/Renderer.php
Unable to stat file /tmp/yii/framework/gii/components/Pear/Text/Diff/Text/Diff.php
Unable to stat file /tmp/yii/framework/gii/components/Pear/Text/Text/Diff.php
Unable to stat file /tmp/yii/framework/gii/components/Text/Diff.php
Unable to stat file /tmp/yii/framework/gii/components/Text/Diff/Renderer.php
Unable to stat file /tmp/yii/framework/gii/components/Text/Diff/Renderer/inline.php
Unable to stat file /tmp/yii/framework/test/PHPUnit/Runner/Version.php
Unable to stat file /tmp/yii/framework/test/PHPUnit/Autoload.php
Unable to stat file /tmp/yii/framework/test/PHPUnit/Extensions/SeleniumTestCase.php
Unable to stat file /tmp/yii/framework/vendors/TextHighlighter/Text/Text/Highlighter/Generator.php
Unable to stat file /tmp/yii/framework/vendors/TextHighlighter/Text/Console/Getopt.php
parsing inputs took 0'07" (7181 ms) wall time
pre-optimizing...
pre-optimizing took 0'00" (293 ms) wall time
inferring types...
inferring types took 0'01" (1003 ms) wall time
post-optimizing...
post-optimizing took 0'00" (377 ms) wall time
creating CPP files...
creating CPP files took 0'03" (3134 ms) wall time
saving code errors...
compiling and linking CPP files...
/tmp/hphp_8EI4PF/php/framework/db/schema/mysql/CMysqlSchema.cpp:
In member function \xe2\x80\x98double HPHP::c_CMysqlSchema::t_getserverversion()\xe2\x80\x99:\n/tmp/hphp_8EI4PF/php/framework/db/schema/mysql/CMysqlSchema.cpp:808
: \xe9\x94\x99\xe8\xaf\xaf\xef\xbc\x9a\xe2\x80\x98q_PDO___ATTR_SERVER_VERSION\xe2\x80\x99\xe5\x9c\xa8\xe6\xad\xa4\xe4\xbd\x9c\xe7\x94\xa8\xe5\x9f\x9f\xe4\xb8\xad\xe5\xb0\x9a\xe6\x9c\xaa\xe5\xa3\xb0\xe6\x98\x8e\nmake[2]: *** [CMakeFiles/program.dir/php/framework/db/schema/mysql/CMysqlSchema.cpp.o]
\xe9\x94\x99\xe8\xaf\xaf 1\nmake[1]: *** [CMakeFiles/program.dir/all] \xe9\x94\x99\xe8\xaf\xaf 2\nmake: *** [all] \xe9\x94\x99\xe8\xaf\xaf 2\n
compiling and linking CPP files took 7'06" (426610 ms) wall time
hphp failed
running hphp took 7'19" (439331 ms) wall time
=========>>>
官方解答:
open /tmp/hphp8EI4PF/php/framework/db/schema/mysql/CMysqlSchema.cpp
and replace q_PDO__
with q_PDO$$ and run make again
.
known bug
================================编译 PHP 到 C++,Hiphop-PHP 有 5 种编译方法:
系统环境变量的设置
Hiphop-PHP 在运行前需要设置两个系统环境变量,分别是 $HPHP_HOME 和 $HPHP_LIB。对于这篇文章中的 RPM 包方式安装的 Hiphop-PHP,这两个环境变量应该这样设置:
export HPHP_HOME=/usr/lib64/hphp
export HPHP_LIB=/usr/lib64/hphp/bin
(1)编译并直接运行
hphp test.php
(2)将 PHP 编译到临时目录,手动执行
hphp test.php --keep-tempdir=1 --log=3
/tmp/hphp_p6vSsP/program (注意!在你的系统中,临时目录的目录名和我不相同,需要进入正确的目录。)
(3)将 PHP 编译到临时目录,启动程序并以 WEB SERVER 方式访问
hphp test.php --keep-tempdir=1 --log=3
/tmp/hphp_p6vSsP/program -m server
打开浏览器,输入 http://www.your.domain/test.php 访问。
你也可以让 Hiphop-PHP 运行于非 80 端口:
/tmp/hphp_p6vSsP/program -m server -p 8080
对于生产环境来说,我们希望 Hiphop-PHP 以守护进程方式运行:
/tmp/hphp_p6vSsP/program -m daemon
(4)运行时解析
hphpi -f test.php
这个就不太推荐了,不过可以作为 Debug 模式来用。
(5)以 WEB 方式运行时解析
hphpi -m daemon
在浏览器中访问 http://www.your.domain/test.php 来访问。
========================================性能对比
# time php t.php
simple 0.227
simplecall 0.277
simpleucall 0.282
simpleudcall 0.287
mandel 0.655
mandel2 0.841
ackermann(7) 0.273
ary(50000) 0.035
ary2(50000) 0.030
ary3(2000) 0.281
fibo(30) 0.897
hash1(50000) 0.069
hash2(500) 0.056
heapsort(20000) 0.170
matrix(20) 0.161
nestedloop(12) 0.378
sieve(30) 0.188
strcat(200000) 0.019
------------------------
Total 5.126
real 0m5.165s
user 0m5.016s
sys 0m0.049s
# time ./program
simple 0.003
simplecall 0.001
simpleucall 0.001
simpleudcall 0.001
mandel 0.291
mandel2 0.294
ackermann(7) 0.046
ary(50000) 0.016
ary2(50000) 0.010
ary3(2000) 0.183
fibo(30) 0.183
hash1(50000) 0.043
hash2(500) 0.037
heapsort(20000) 0.068
matrix(20) 0.040
nestedloop(12) 0.021
sieve(30) 0.041
strcat(200000) 0.006
------------------------
Total 1.284
real 0m1.743s
user 0m1.498s
sys 0m0.024s
===================================== 编译多个目录
/tmp/aa
/a/1.php
/a2/2.php
a/1.php
<?php
$a="a";
echo $a;
?>
a2/2.php
<?php
include("../a/1.php");
echo $a;
?>
hphp --input-dir=/tmp/aa/ --keep-tempdir=1 --log=3
./program -m server -p 8081
http://192.168.1.95:8081/a/1.php
http://192.168.1.95:8081/a2/2.php
======================================= 编译class
<?php
class a {
function func1()
{
echo("I'm func1 in A!<br/>");
}
function func2()
{
echo("I'm func2 in A!<br/>");
}
}
$b = new a();
$b->func1();
?>
#hphp test.php 编译并直接运行
#hphpi -f test.php 运行时解析
==========================================# hphp --help
HipHop Compiler for PHP Usage:
hphp <options> <inputs>
Options:
--help display this message
--version display version number
-t [ --target ] arg (=run) lint | analyze | php | cpp | sep-ext-cpp |
filecache | run (default)
-f [ --format ] arg lint: (none); 运行时解析
hphpi -f test.php
analyze: (none);
php: trimmed (default) | inlined | pickled |
typeinfo | <any combination of them by any
separator>;
cpp: cluster (default) | file | sys | exe |
lib;
run: cluster (default) | file
--cluster-count arg (=0) Cluster by file sizes and output roughly these
many number of files. Use 0 for no clustering.
--input-dir arg input directory 输入的目录(支持多个目录)
--program arg (=program) final program name to use
--args arg program arguments
-i [ --inputs ] arg input file names 输入的文件名
--input-list arg file containing list of file names, one per 包含文件的文件名列表,每行一个
line
--include-path arg a list of full paths to search for files being
included in includes or requires but cannot be
found assuming relative paths
--module arg directories containing all input files 包含所有的输入文件的目录
--exclude-dir arg directories to exclude from the input
--fmodule arg same with module, except no exclusion checking
is performed, so these modules are forced to
be included
--ffile arg extra PHP files forced to include without 被迫额外的PHP文件,包括不排除检查
exclusion checking
--exclude-file arg files to exclude from the input, even if 排除输入的文件,即使解析按需发现
parse-on-demand finds it
--exclude-pattern arg regex (in 'find' command's regex command line
option format) of files or directories to
exclude from the input, even if
parse-on-demand finds it
--exclude-static-pattern arg regex (in 'find' command's regex command line
option format) of files or directories to
exclude from static content cache
--exclude-static-dir arg directories to exclude from static content 目录排除静态内容缓存
cache
--exclude-static-file arg files to exclude from static content cache 文件排除从静态内容缓存
--cfile arg extra static files forced to include without 额外的静态文件,迫使包括不排除检查
exclusion checking
--cmodule arg extra directories for static files without 不排除签静态文件的额外目录
exclusion checking
--parse-on-demand arg (=1) whether to parse files that are not specified 不从命令行中指定的文件是否解析
from command line
--branch arg SVN branch
--revision arg SVN revision
-o [ --output-dir ] arg output directory
--output-file arg output file 输出文件
--sync-dir arg Files will be created in this directory first, 文件将在此目录中创建的第一个,然后同步输出目录覆盖相同的文件。增量编译和构建大。
then sync with output directory without
overwriting identical files. Great for
incremental compilation and build.
--optimize-level arg (=1) optimization level 优化级别
--gen-stats arg (=0) whether to generate code errors
-k [ --keep-tempdir ] arg (=0) whether to keep the temporary directory 是否保留临时目录
--db-stats arg database connection string to save code
errors: <username>:<password>@<host>:<port>/<d
b>
--no-type-inference arg (=0) turn off type inference for C++ code 关闭C + +代码生成的类型推断
generation
--no-min-include arg (=0) turn off minimium include analysis when target 关闭minimium包括分析时的目标是“分析”
is "analyze"
--no-meta-info arg (=0) do not generate class map, function jump table 不生成类图,函数跳转表和宏,在生成代码时,用于演示目的
and macros when generating code; good for demo
purposes
-c [ --config ] arg config file name
--config-dir arg root directory configuration is based on (for 根目录配置的基础上(例如,排除的目录可能会在配置中的相对路径。
example, excluded directories may be relative
path in configuration.
-v [ --config-value ] arg individual configuration string in a format of 个人配置字符串名称=值,名称可以是任何有效的配置配置文件的格式
name=value, where name can be any valid
configuration for a config file
-l [ --log ] arg (=-1) -1: (default); 0: no logging; 1: errors only; log级别
2: warnings and errors; 3: informational as
well; 4: really verbose.
--force arg (=1) force to ignore code generation errors and 强制忽略代码生成错误并继续编译
continue compilations
--file-cache arg if specified, generate a static file cache 如果指定的话,产生与此文件名的静态文件缓存
with this file name
--rtti-directory arg the directory of rtti profiling data RTTI分析数据的目录
--java-root arg (=php) the root package of generated Java FFI classes
--generate-ffi arg (=0) generate ffi stubs
--dump arg (=0) dump the program graph 转储程序图
--docjson arg Filename to generate a JSON file for PHP docs 文件名生成一个JSON的PHP文件文件
--coredump arg (=0) turn on coredump
--nofork arg (=0) forking is needed for large compilation to 分叉是需要大量的编译之前的g ++编译释放内存。关闭分叉可以帮助gdb调试。
release memory before g++compilation. turning
off forking can help gdb debugging.
--fl-annotate arg (=0) Annote emitted source with compiler file-line Annote编译器文件行信息的排放源
info
--opts arg (=none) Set optimizations to enable/disable 设置启用/禁用的优化
--ppp arg Preprocessed partition configuration. To speed
up distcc compilation, bin/ppp.php can
pre-compute better partition between different
.cpp files according to preprocessed file
sizes, instead of original file sizes
(default). Run bin/ppp.php to generate an HDF
configuration file to specify here.
--compiler-id display the git hash for the compiler id 显示git的编译器ID哈希
--taint-status check if the compiler was built with taint 检查如果编译器是内置的污点启用
enabled
=========================== 安装配置(未完全整理,仅供参考) 原则:碰到哪个软件本版太底或没安装,安装后继续
http://www.iteye.com/topic/1112434
yum -y install git cmake pcre-devel libmcrypt-devel mysql-devel gd-devel libxml2-devel libcap-devel binutils-devel flex bison expat-devel patch gcc44 gcc44-c++ gcc gcc-c++ bzip2 bzip2-devel memcached openldap openldap-devel readline-devel libc-client-devel pam-devel wget ncurses-devel
安装注意事项
编译的时候碰到的问题很多,但是基本上都是按照wiki上的步骤进行的。我觉得比较重要的几点:
wiki上的Required Packages包包列表都要检查一遍,比如版本号,是否安装过,像binutils-dev这种就很容易忽略
版本符合的话,直接用yum安装这些包就可以了
wiki上有类似Boost 1.37 is the minimum version字样,说明开发者可能就是在这个版本下开发的,我试了下最新版本的boost,编译到后来反而出错
如果yum上没有符合版本的lib库,可以手动编译,但是编译时建议就放在自己的home下,比如:
DE>./configure --prefix=/home/userDE>
tbb Intel’s Thread Building Blocks这个包有些麻烦,记得按照wiki上说的步骤安装
export CMAKE_PREFIX_PATH=/root
To build HipHop, use the following:
Linux:
cd /root/dev
git clone git://github.com/facebook/hiphop-php.git
cd hiphop-php
git submodule init
git submodule update
export HPHP_HOME=`pwd`
export HPHP_LIB=`pwd`/bin
cmake .
.....
make
cd libmemcached-0.48
./configure
make install
cd ..
cd libevent-1.4.14-stable
cp ../hiphop-php/src/third_party/libevent-1.4.14.fb-changes.diff .
patch < libevent-1.4.14.fb-changes.diff
./configure
make install
cd ..
yum install libXpm
rpm -Uvh gd-2.0.35-10.el6.x86_64.rpm
wget wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure
make
make install
tar jxvf curl-7.20.0.tar.bz2
cd curl-7.20.0
cp ../hiphop-php/src/third_party/libcurl.fb-changes.diff .
patch -p1 < libcurl.fb-changes.diff
./configure
make
make install
wget http://download.icu-project.org/files/icu4c/4.6.1/icu4c-4_6_1-src.tgz
cd icu/source
tar xvzf icu4c-4_6_1-src.tgz
./configure
make
make install
cd /tmp/rpm
###rpm -Uvh --force *.rpm --nodeps
rpm -Uvh --force *.rpm
wget "http://www.threadingbuildingblocks.org/uploads/77/142/2.2/tbb22_20090809oss_src.tgz"
tar xvzf tbb22_20090809oss_src.tgz
cd tbb22_20090809oss
gmake
cp -Rp include/tbb/ /usr/include/
cp ./build/*_release/*.so /usr/lib/
cp ./build/*_release/*.so.2 /usr/lib/
ldconfig
rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install mcrypt.x86_64 libmcrypt-devel.x86_64
wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.2.tar.gz
或者下载地址http://www.google.com.hk/url?sa=t&source=web&cd=1&ved=0CBkQFjAA&url=http%3A%2F%2Fwww.163disk.com%2Ffileview_273358.html&rct=j&q=onig-5.9.2.tar.gz&ei=DBJeTtehKovRmAX_w6Qy&usg=AFQjCNHaI9mOmm5o-BlJEAian2e9bKsYJw&cad=rjt
./configure
make
make install
yum install jemalloc-devel.x86_64 jemalloc.x86_64
yum install libc-client2007.x86_64
wget http://php.webtutor.pl/wp-content/uploads/2011/04/libcclient2007-devel.tar.gz
cp -r imap /usr/local/include/
cp /usr/lib/libc-client.so.2007 /usr/local/lib/libc-client.so
------------------ make 报错:
Linking CXX static library ../../bin/libhphp_analysis.a
[ 88%] Built target hphp_analysis
Scanning dependencies of target hphp
[ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
Linking CXX executable hphp
/usr/bin/ld: warning: libcrypto.so.6, needed by /usr/local/lib/libc-client.so, m ay conflict with libcrypto.so.10
/usr/bin/ld: warning: libssl.so.6, needed by /usr/local/lib/libc-client.so, may conflict with libssl.so.10
../../bin/libhphp_runtime.a(ext_image.cpp.o): In function `HPHP::f_imagecreatefr omstring(HPHP::String const&)':
ext_image.cpp:(.text+0x70e7): undefined reference to `gdImageCreateFromJpegCtx'
../../bin/libhphp_runtime.a(ext_image.cpp.o): In function `HPHP::_php_image_conv ert(HPHP::String const&, HPHP::String const&, int, int, int, int)':
ext_image.cpp:(.text+0x77f9): undefined reference to `gdImageCreateFromJpeg'
../../bin/libhphp_runtime.a(ext_image.cpp.o): In function `HPHP::_php_image_crea te_from(HPHP::String const&, int, int, int, int, int, char*, gdImageStruct* (*)( ), gdImageStruct* (*)())':
ext_image.cpp:(.text+0x82e6): undefined reference to `gdImageCreateFromJpeg'
../../bin/libhphp_runtime.a(ext_image.cpp.o): In function `HPHP::f_imagecreatefr omjpeg(HPHP::String const&)':
ext_image.cpp:(.text+0x8b98): undefined reference to `gdImageCreateFromJpegCtx'
ext_image.cpp:(.text+0x8ba1): undefined reference to `gdImageCreateFromJpeg'
../../bin/libhphp_runtime.a(ext_image.cpp.o): In function `HPHP::f_imagejpeg(HPH P::Object const&, HPHP::String const&, int)':
ext_image.cpp:(.text+0x196ad): undefined reference to `gdImageJpegCtx'
../../bin/libhphp_runtime.a(ext_imagesprite.cpp.o): In function `HPHP::c_ImageSp rite::t_output(HPHP::String const&, HPHP::String const&, int)':
ext_imagesprite.cpp:(.text+0x4d29): undefined reference to `gdImageJpegPtr'
../../bin/libhphp_runtime.a(ext_imagesprite.cpp.o): In function `HPHP::ImageSpri te::Image::load_data_to_gd(int, void const*)':
ext_imagesprite.cpp:(.text+0x536e): undefined reference to `gdImageCreateFromJpe gPtr'
collect2: ld 返回 1
make[2]: *** [src/hphp/hphp] 错误 1
make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] 错误 2
make: *** [all] 错误 2
删除CMakeCache.txt,重新cmake .
yum install python-devel.x86_64
--------------------- gd 安装
mkdir /usr/local/modules
#jpeg目录
mkdir /usr/local/modules/jpeg6
mkdir /usr/local/modules/jpeg6/bin
mkdir /usr/local/modules/jpeg6/lib
mkdir /usr/local/modules/jpeg6/include
mkdir /usr/local/modules/jpeg6/man
mkdir /usr/local/modules/jpeg6/man/man1
a.zlib (看来zlib停止升级了,到现在还是2005年发布的一个东东)
# wget http://www.zlib.net/zlib-1.2.5.tar.gz //下载
# tar zxvf zlib-1.2.5.tar.gz //解压
# cd zlib-1.2.5 //改变目录
# CFLAGS=”-O3 -fPIC” ./configure //使用64位 的方法进行编译 (一般只需要./configure)
# make
# make install
b.FreeType
# wget http://downloads.sourceforge.net/freetype/freetype-2.3.5.tar.gz?modtime=1183336047&big_mirror=0 //下载
# tar zxvf freetype-2.3.5.tar.gz //解压
# cd freetype-2.3.5 //改变目录
# ./configure -prefix=/usr/local/modules/freetype //配置
# make //编译
# make install //安装
c.Libpng
# wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.8-config.tar.gz?download //下载
# tar zxvf libpng-1.2.8-config.tar.gz //解压
# cd libpng-1.2.8-config //改变目录
注意:首先看有没有装libtool (whereis libtool),没有就需要yum install libtool.
# ./configure //配置
# make //编译
# make install //安装
64位的机器这样搞
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure –enable-shared –enable-static
make
make install
d.jpeg
# wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz //下载
# tar jpegsrc.v8b.tar.gz //解压
# cd jpeg-8b //改变目录
# ./configure -prefix=/usr/local/modules/jpeg6 -enable-shared -enable-static //配置
# make //编译
# make install //安装
e.GD
# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz //下载
# tar xzvf gd-2.0.33.tar.gz //解压
# cd gd-2.0.33 //改变目录
# ./configure -prefix=/usr/local/gd -with-jpeg=/usr/local/modules/jpeg6 -with-png=/usr/local/libpng -with-zlib -with-freetype=/usr/local/modules/freetype //配置
# make //编译
# make install //安装
cp -rf libgd.so libgd.so.2 libgd.so.2.0.0 /usr/local/lib64/
cp -rf libgd.so libgd.so.2 libgd.so.2.0.0 /usr/lib64/
cp -rf libgd.so libgd.so.2 libgd.so.2.0.0 /usr/lib/
/usr/bin/ld: warning: libcrypto.so.6, needed by /usr/local/lib/libc-client.so, may conflict with libcrypto.so.10
/usr/bin/ld: warning: libssl.so.6, needed by /usr/local/lib/libc-client.so, may conflict with libssl.so.10
[100%] Built target test
yum whatprovides "*/*libcrypto.so*"
经查,发现是运行机器的libcrypto.so版本太高,是libcrypto.so.6,而ldd显示nginx依赖的是libcrypto.so.4
于是,在对应的/lib64目录下建个libcrypto.so.4的软链接就可以了
/usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient_r.so, may conflict with libcrypto.so.6
/usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/mysql/libmysqlclient_r.so, may conflict with libcrypto.so.6
发表评论
-
设置sudo为不需要密码
2015-04-17 09:04 10510有时候我们只需要执 ... -
haproxy 安装配置和负载实例
2015-03-27 11:49 11531一、环境说明实验环境 OS CentOS5.4 192.1 ... -
/dev/mapper/VolGroup00-LogVol00 100% 如何处理
2015-03-03 10:51 8209服务器磁盘跑满了, 命令查看 如下 [root@lo ... -
Tsar开源:淘宝内部大量使用的系统监控工具
2014-08-07 09:51 971Tsar是淘宝的一个用来收集服务器系统和应用信息的采集报告 ... -
Linux运维常用命令 (转载)
2013-01-31 10:23 25241 删除0字节文件find-type f - ... -
linux恢复 rm -rf 删除的文件:extundelete
2013-01-24 15:47 8910http://blog.csdn.net/pang6013 ... -
网站排障分析常用的命令
2013-01-21 18:17 1397------------------------------- ... -
迁移vmware服务器后Device eth0 does not seem to be present
2013-01-21 10:58 2250用VMware 安装 linux 6.0 ... -
LoadRunner如何监控Linux系统资源 : rpc.rstatd
2012-12-17 14:49 10294一 简述:LoadRunner监控Linux资源时弹出如下错误 ... -
僵尸Z进程和D进程
2012-12-10 16:47 13146-------------- 1 关于ZOMBIE进 ... -
Unix操作系统硬链接与符号链接的区别
2012-12-10 16:08 2021Unix操作系统有很多值得 ... -
nagios配置参数详解
2012-12-04 14:12 9440# Nagios return codes#定 ... -
nagios自定义监控nginx php和ip_conn
2012-12-03 17:57 3169自定义ip_conn.sh :http://zhume ... -
【汇总】shell show收藏
2012-11-29 14:03 1268================== shell从文本取对应的 ... -
Kickstart+PXE+DHCP+TFTP+NFS自动安装Centos5
2012-11-29 11:34 1602http://5ydycm.blog.51cto.com/11 ... -
haproxy+keepalived高可用负载均衡(七层)
2012-11-29 10:36 4006HAproxy是一款基于TCP( ... -
LVS+Keepalived
2012-11-29 10:10 1734http://www.linuxvirtualserver.o ... -
haproxy & LVS*(keepalived和heartbeat) & ng的比较
2012-11-29 10:04 7591http://network.51cto.com/art/ ... -
运维架构师-并不遥远的彼岸
2012-11-28 17:45 1736在百度里搜索运维架构师,你会发现招聘的职位还不少并且月薪、年 ... -
puppet模块汇总
2012-11-21 17:08 3028在磁盘上,一个模块对应一个特殊的目录结构: MODULE_ ...
相关推荐
这个版本是“yii-advanced-app-2.0.10.tgz”,它是一个压缩包,包含了 Yii 2 框架的高级应用模板,版本号为 2.0.10。这个版本可能包含了一些修复和改进,以提供更稳定和高效的开发环境。 Yii 2 是一个基于组件的高...
docker-php-yii2, 包含 Yii 2.0框架扩展和库的Docker PHP映像 支持的标签和相应的Dockerfile 链接7.x-fpm-x.x,latest ( Dockerfile )7.x-fpm-x.x-nginx,latest-nginx ( Dockerfile )7.x-fpm-x.x-alpi
yii2-mailqueue, 用于 yii2 swiftmailer https的yii2的电子邮件队列组件 yii2-mailqueue适用于 yii2-swiftmailer的yii2的电子邮件队列组件安装安装这个扩展的首选方法是通过 composer插件。运行php composer.phar ...
在这个场景中,“微服务之数据库服务-客户端(PHP+YII)”是一个关于如何在PHP和YII框架下实现微服务数据库客户端的专题。 首先,我们需要理解微服务中的数据库设计原则。在微服务架构中,每个服务通常都有自己的...
Yii框架是基于组件的高性能PHP框架,用于开发Web2.0应用。在Yii中,下拉框(Dropdown)常用于创建HTML表单中的选择菜单,它提供了用户友好的交互方式,让用户可以从预定义的选项中进行选择。在这个“yii示例-下拉框-...
yii2-semantic-ui, Yii2的语义用户界面扩展 Yii2语义用户界面扩展语义用户界面( 用于 Yii2的扩展)安装yii2-semantic-ui 2.* 使用语义用户界面 2.*作曲家安装这里扩展的首选方法是通过 Composer 。运行php composer.
yii2-froala-editor, Yii 2小部件用于Froala所见即所得的HTML编辑器 Yii框架Froala所见即所得的HTML编辑器 Yii 2小部件,用于Froala所见即所得编辑器。安装安装这个扩展的首选方法是通过 composer插件。运行php ...
本资料主要关注微服务中的一个关键组件——数据库服务,并且特别聚焦于服务端的实现,使用PHP编程语言结合YII框架来完成。以下是关于这一主题的详细知识阐述: 1. **微服务架构**:微服务是一种将大型复杂应用拆分...
yii2-upload-behavior, ActiveRecord的Yii2文件/图像上传行为 Yii2文件/图像上传行为这个包是两种类似行为的集合。 第一个允许你将上传的文件保留为。 第二个允许你为上传的图片生成缩略图。 可以为不同的属性多次...
TreeView 是使用 HTML5、jQuery 和 CSS3 特性设计的,可以与 Yii PHP 框架一起工作。 采用 CSS3 样式,包括 jquery 转换和 ajax 内容加载部分,包括嵌入式警报,并利用引导 css。 树管理功能选项和模式: 使用...
yii2-nested-sets, Yii框架的嵌套集行为 nest 2的行为 一种利用改进的预排序树遍历算法的Yii框架的现代嵌套。安装安装这个扩展的首选方法是通过 composer插件。运行$ composer require creocoder/yii2-nes
yii2-device-detect, 移动检测库的Yii2扩展 yii2-device-detect基于Yii2扩展的移动检测库。使用它只需要在 composer.json file: 中使用这个扩展"alexandernst/yii2-device-detect":"0.0.12",
Yii-extensions, 我对Yii框架社区的小贡献 Yii框架扩展下面是我对amazing社区的小贡献。重要通知这个存储库很快将重构为指向独立 extensions/widgets/helpers的子模块列表,以帮助你和库独立地进行改进。 是首次创建...
yii2-ajaxcrud, 用于yii2的单一页面Ajax管理的Gii模板 yii2-ajaxcrud 用于yii2的单一页面Ajax管理的Gii模板 特性使用Ajax创建。读取。更新。删除页面批量删除 suportPjax小部件 suport导出函数( pdf,html,文本,cs
yii2-浏览器信息 Yii2扩展名。 提供有关浏览器的详细信息。 当前可用的提供商: Browscap( ) 安装 安装此扩展的首选方法是通过 。 要安装,请运行 $ php composer.phar require alexander-suter/yii2-browser...
无论运行php composer.phar require --prefer-dist omnilight/yii2-shopping-cart "*" 或添加" omnilight/yii2-shopping-cart " : " * " 到composer.json的require部分。如何使用在您的模型中: class Product ...
yii2-user, 灵活的Yii2用户注册和认证模块 Yii2-user 大多数网络应用程序都提供了一种用户登录。登录或者重新设置自己忘记密码。 你可以使用Yii2-user灵活的用户管理模块来处理常见任务,比如注册。认证和密码检索,...
这个压缩包中的"atom-yii-master"可能是一个Git仓库的克隆,包含了完整的Atom包源码,用于与Yii框架集成。通常,这样的项目会包含以下几部分: 1. **配置文件**:可能包含Yii框架的配置信息,以确保Atom包能正确地...
yii2-enhanced-gii Yii2 Gii(发电机)与关系 支持 在LinkedIn上支持我 安装 安装此扩展的首选方法是通过 。 无论运行 $ composer require mootensai/yii2-enhanced-gii:dev-master $ composer require kartik-v/...