佛祖保佑,永不宕机
效果图 佛祖地址:https://down.whsir.com/downloads/fz.txt github地址:https://github.com/abcfy2/motd ~微信打赏~ 赏
效果图 佛祖地址:https://down.whsir.com/downloads/fz.txt github地址:https://github.com/abcfy2/motd ~微信打赏~ 赏
使用yum时一直提示下面的信息
1 2 3 4 5 6 7 8 9 |
Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Cleaning repos: base extras updates Cleaning up Everything Cleaning up list of fastest mirrors |
原来系统是CentOS6.8,yum update后开始一直报这个了,后来经过查找发现,系统已经升级到了Centos6.9,升级后在/etc/yum.repos. … 阅读全文
nginx禁止指定目录运行php,只需要在server配置段中增加个location规则就可以了。 1、禁止某一个目录执行php
1 2 3 4 |
location ~* ^/download/.*\.(php|php5)$ { deny all; } |
2、禁止多个目录执行php [crayon-67421e54c4 … 阅读全文
当前使用环境Centos6.9 mydumper是针对mysql数据库备份的一个轻量级第三方的开源工具,备份方式为逻辑备份,支持多线程,备份速度要比mysqldump快的多。 安装所需依赖 [crayon-67421e54c4b220852522 … 阅读全文
linux下在终端环境下可以使用free命令看到系统实际使用内存的情况,一般用free -m方式查看内存占用。 间隔显示free 可以使用-s选项,跟上间隔的秒数,例如每3秒统计一次内存使用率,free -ms 3 以MB单位显示内存,free -h 参数解释 … 阅读全文
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-67421e … 阅读全文
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-67421e54c521 … 阅读全文
在编译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编译就可以了 ~微信打赏~ … 阅读全文