摘要: 1.准备工作: yuminstallgccgcc-c++ncurses-develperl mysql5.5过后,源码安装需要cmake wgethttp://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz tar-xzvfc... 阅读全文
posted @ 2016-01-06 17:29 netRuby 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.安装redis扩展: https://github.com/phpredis/phpredis.git cd phpredis/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-... 阅读全文
posted @ 2016-01-06 14:52 netRuby 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.安装依赖文件: yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel... 阅读全文
posted @ 2016-01-06 14:45 netRuby 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.CGI是为了保证web server传递过来的数据是标准格式的,方便CGI程序的编写者。(理解为协议)web server(比如说nginx)只是内容的分发者。比如,如果请求/index.html,那么web server会去文件系统中找到这个文件,发送给浏览器,这里分发的是静态数据。好了,如果... 阅读全文
posted @ 2016-01-06 13:40 netRuby 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1.获取nginx的源码:(下载的软件放在/usr/local/src下) wget http://nginx.org/download/nginx-1.6.2.tar.gz tar xvf nginx-1.6.2.tar.gz2.安装PCRE,zlib: wget ftp://f... 阅读全文
posted @ 2016-01-06 13:28 netRuby 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.初始化一个Git仓库,使用git init命令。2.添加文件到Git仓库,分两步:第一步,使用命令git add ,注意,可反复多次使用,添加多个文件;第二步,使用命令git commit,完成。3.要随时掌握工作区的状态,使用git status命令。 如果git status告诉你有文件被修... 阅读全文
posted @ 2016-01-06 10:05 netRuby 阅读(156) 评论(0) 推荐(0) 编辑
摘要: PHP异常处理【重点】1、基本语法 try{ //可能出现错误或异常的代码 //catch 捕获 Exception是php已定义好的异常类 } catch(Exception $e){ //对异常处理,方法: //1、自己处理 ... 阅读全文
posted @ 2015-11-30 10:39 netRuby 阅读(207) 评论(0) 推荐(0) 编辑
摘要: PHP错误处理的三种方式A、简单的die()语句; 等价于exit();例: if(!file_exists('aa.txt')){ die('文件不存在'); } else { //执行操作 } //如果上面die()被触发,那么这里echo接不被执行 echo 'ok';... 阅读全文
posted @ 2015-11-30 10:37 netRuby 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 100-199 用于指定客户端应相应的某些动作。200-299 用于表示请求成功。300-399 用于已经移动的文件并且常被包含在定位头信息中指定新的地址信息。400-499 用于指出客户端的错误。500-599 用于支持服务器错误。HttpServletResponse中的常量代表关联不同标准消息... 阅读全文
posted @ 2015-11-30 09:26 netRuby 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 首先我们先来了解下Ucenter登录步骤1、用户登录discuz,通过logging.php文件中的函数uc_user_login对post过来的数据进行验证,也就是对username和password进行验证。2、如果验证成功,将调用位于uc_client下client.php文件中的函数uc_u... 阅读全文
posted @ 2015-11-27 11:22 netRuby 阅读(223) 评论(0) 推荐(0) 编辑