yum报错cannot open Packages database in /var/lib/rpm
rpmdb: Thread/process 11197/140701458409216 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->fai … 阅读全文
rpmdb: Thread/process 11197/140701458409216 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->fai … 阅读全文
ntpdate只能用udp协议来同步时间,rdate支持用tcp协议或udp协议同步时间。 使用ntpdate更新时间 yum -y install ntpdate /usr/sbin/ntpdate ntp1.aliyun.com 使用rdate更新时间 y … 阅读全文
当前系统Centos6.9,已经安装好lnmp(php5.6 mysql5.1)军哥环境,在此基础上并存一个php5.2的版本。 PS:php5.2.14默认不支持php-fpm的,需要打上fpm补丁 安装epel源 [crayon-67bb0c … 阅读全文
redis编译3.2.9时报错,报错信息如下
1 2 3 4 5 |
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory `/usr/local/src/redis-3.2.9/src' make: *** [all] Error 2 |
README.md文件中有写
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Allocator --------- Selecting a non-default memory allocator when building Redis is done by setting the `MALLOC` environment variable. Redis is compiled and linked against libc malloc by default, with the exception of jemalloc being the default on Linux systems. This default was picked because jemalloc has proven to have fewer fragmentation problems than libc malloc. To force compiling against libc malloc, use: % make MALLOC=libc To compile against jemalloc on Mac OS X systems, use: % make MALLOC=jemalloc |
解决办法: [crayon-67bb0c19d352 … 阅读全文
在编译redis3.2.9时报错
1 2 3 4 5 6 7 |
cc: ../deps/hiredis/libhiredis.a: No such file or directory cc: ../deps/lua/src/liblua.a: No such file or directory cc: ../deps/geohash-int/geohash.o: No such file or directory cc: ../deps/geohash-int/geohash_helper.o: No such file or directory make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `/usr/local/src/redis-3.2.9/src' make: *** [all] Error 2 |
解决办法 进入源码包目录下的deps目录中执行
1 |
make geohash-int hiredis jemalloc linenoise lua |
然后再进行make编译就可以了 ~微信打赏~ … 阅读全文
当然环境用的军哥的lnmp一键包,当前版本Centos6.9 nginx1.10 php5.5.36 mysql5.6.29 因为当前公司有网站需要迁移,在迁移的过程中,发现eaccelerator0.9.5.3无法在现有php版本运行,经过一番查找,发现ea … 阅读全文
实验环境vmware12 系统CentOS6.7 64位 配置RAID5 RAID5至少需要三块硬盘,读写数据的时候会将数据分布的读写到所有硬盘上 虚拟机设置中,除系统盘外,增加4块硬盘来做实验,其中3块硬盘为活动盘,另一块做热备盘 进入系统fdisk -l … 阅读全文
gitlab通过rpm包安装后,默认存储位置在/var/opt/gitlab/git-data/repositories,通常需要更改此路径到单独的一个分区来存储仓库的数据。 例如我这里把数据存放到/data/gitlab目录下 创建/data/gitlab目 … 阅读全文
当前服务器用的是军哥lnmp1.3一键包,已经装好了php5.6,在此基础上,并存一个php5.4的版本。 废话不多说直接进入主题! 编译安装php-5.4.45 下载php5.4.45源码包
1 2 |
cd /usr/src wget http://cn.php.net/distributions/php-5.4.45.tar.gz |
… 阅读全文
根目录磁盘写满,往往都是.log日志造成的,首先想到的是查找大的日志文件 1、find查找根下大于800M的文件
1 |
find / -size +800M -exec ls -lh {} \; |
找到大的日志文件关闭掉,或者更改到其他磁盘。 2、如果查找后,发现没有大文件,可 … 阅读全文