nginx禁止指定目录运行php
nginx禁止指定目录运行php,只需要在server配置段中增加个location规则就可以了。 1、禁止某一个目录执行php
1 2 3 4 |
location ~* ^/download/.*\.(php|php5)$ { deny all; } |
2、禁止多个目录执行php [crayon-681e84b6d3 … 阅读全文
nginx禁止指定目录运行php,只需要在server配置段中增加个location规则就可以了。 1、禁止某一个目录执行php
1 2 3 4 |
location ~* ^/download/.*\.(php|php5)$ { deny all; } |
2、禁止多个目录执行php [crayon-681e84b6d3 … 阅读全文
当前使用环境Centos6.9 mydumper是针对mysql数据库备份的一个轻量级第三方的开源工具,备份方式为逻辑备份,支持多线程,备份速度要比mysqldump快的多。 安装所需依赖 [crayon-681e84b6d47397852261 … 阅读全文
同步所用到的两个程序 cwRsyncClient和cwRsyncServer cwRsyncServer下载地址:https://down.whsir.com/downloads/cwRsyncServer_4.0.5_Installe.zip cwRsync … 阅读全文
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-681e84 … 阅读全文
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-681e84b6d4f6 … 阅读全文
在编译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 … 阅读全文