git: error while loading shared libraries: libiconv.so.2
git安装之后出现: git: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory 这是由于无法加载libiconv.so.2库文件. 解决方法: # echo "/usr/local/lib" >> /etc/ld.so.conf # /sbin/ldconfig
wordpress非插件文章浏览次数统计
首先在functions.php添加两个函数: //获取浏览数-参数文章ID function getPostViews($postID){ //字段名称 $count_key = 'post_views_count'; //获取字段值即浏览次数 $count = get_post_meta($postID, $count_key, true); //如果为空设置为0 if($count==''){ delet...
JS验证IP的相关函数
//函数名:fucCheckNum() //功能介绍:检查是否为数字 //参数说明:要检查的数字 function fucCheckNum(Num) { var i, j, strTemp; strTemp = "0123456789"; if (Num.length == 0) return false; for (i = 0; i < Num.length;i++) { j = strTemp.indexOf(Num...
mysql configure.am error No curses/termcap library found
安装mysql时出现: configure.am: error: No curses/termcap library found 这是由于curses/termcap库没有安装,安装ncurses即可: # wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz # tar zxvf ncurses-5.6.tar.gz # cd ncurses-5.6 # ./configure --...
ubuntu configure:error:C++ compiler cannot create executables
ubuntu源码编译安装其它软件configure时出现: configure: error: C++ compiler cannot create executables 这是由于没有安装gcc-c++通过以下命令安装即可: # apt-get install build-essential # apt-get install gcc g++ libc6-dev 若是centos、redhat等系统可...
Zend Optimizer 3.3.9安装指南
Linux系统 下载: # wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 解压: # tar -zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 拷贝与安装的PHP版本对应的so文件: # cp ZendOptimizer-3.3.9-linu...
piccms nginx伪静态
location / { if (!-e $request_filename){ rewrite ^/Article-index-id-([0-9]+)\.html$ /index.php?Article-index-id-$1.html last; rewrite ^/Cate-index-cid-([0-9]+)\.html$ /index.php?Cate-index-cid-$1.html last; rewrite "^/Article-index-id-([0-...
OSQA搭建部署(centos6,apache,mysql,wsgi)
OSQA是一款免费且开源的问答系统,采用Python的Django开发框架,对于python版本要求是2.6以上。 系统环境及版本: OS:centos6 python:python2.7 apache:2.2 mysql:5.5.3 wsgi:3.3 Django:1.3 MySQL-python:1.2.3 注:本安装流程所有软件源码存放目录位于:/usr/...
OSQA搭建部署(Nginx,Mysql,Python,Uwsgi)
系统环境及版本: OS:centos6 python:python2.7 nginx:0.8 mysql:5.5.3 uwsgi:1.0 Django:1.3 MySQL-python:1.2.3 注:Nginx 0.8版本已经内置uwsgi模块,所以不需要重新编译Nginx添加uwsgi模块。 本安装过程全部基于源码编译安装,并假设已经安装Nginx、Mysql,...

