摘要: 打开nginx主配置文件nginx.conf 找到http{}段,添加client_max_body_size 20m; 阅读全文
posted @ 2013-11-08 16:14 ecstore 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 手机号检测^1[3|4|5|8][0-9]\d{8}$邮箱检测^[0-9a-z][_.0-9a-z-]{0,31}@([0-9a-z][0-9a-z-]{0,30}[0-9a-z]\.){1,4}[a-z]{2,4}$ 阅读全文
posted @ 2013-11-08 13:20 ecstore 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 经过上周一周朋友们帮忙测试和bug fix,nginx_http_hashdos_module已经达到可以线上使用的水平,下面是使用记录。下载#wget --no-check-certificate https://github.com/54chen/nginx-http-hashdos-module/zipball/master#mv master nginx_hashdos.zip#unzip nginx_hashdos.zip编译安装#tar zxvf nginx-1.0.xx.tar.gz#cd nginx-1.0.xx/#./configure --prefix=/opt/soft/ 阅读全文
posted @ 2013-11-01 17:15 ecstore 阅读(279) 评论(0) 推荐(0) 编辑
摘要: install sphinxwget http://sphinxsearch.com/files/sphinx-2.0.8-release.tar.gztar zxvf sphinx-2.0.8-release.tar.gzcd sphinx-2.0.8-release./configure --prefix=/usr/local/webserver/sphinx --with-mysql=/usr/local/webserver/mysql/make && make install注释:--prefix : 指定Sphinx安装到何处,我的安装目录是“/usr/local/w 阅读全文
posted @ 2013-10-30 17:20 ecstore 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 通过又拍云存储REST API ,为ECStore新增图片存储引擎,从而达到图片数据与主站数据分离。提高网站性能。图片存储引擎相关文件添加与修改一共涉及到ECStore 2个APP 的文件添加和修改。新增 :app/base/lib/storage/upyunclass.phpcode}]: {$this->message}\n"; }}/*}}}*/class UpYunAuthorizationException extends UpYunException {/*{{{*/ public function __construct($message, $code = 0, 阅读全文
posted @ 2013-10-06 16:02 ecstore 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 一、安装步骤省略二、运行“Git Bash“在打开的窗口中输入:ssh-keygen -t rsa -C "my@gmail.com" 会提示SSH Public Keys存放的位置,默认即可 ,直接按回车键;接下来提示输入密码,输入两次然后确认即可,不设密码则直接回车两次;完成上面步骤,ssh-keygen生成,在key保存目录下面找到id_rsa.pub文件,复制里面的内容,登录github.com,在ssh 相关设置里面添加刚才复制的内容。三、基本配置git config –global user.name "username" // git上的用 阅读全文
posted @ 2013-09-04 12:02 ecstore 阅读(352) 评论(1) 推荐(0) 编辑
摘要: 安装编译环境前提(mysql5.5.x不再用configure,而用cmake)wget http://lnamp-web-server.googlecode.com/files/cmake-2.8.4.tar.gztar zxvf cmake-2.8.4.tar.gzcd cmake-2.8.4./configure && make && make install安装mysqlwget http://mirrors.sohu.com/mysql/MySQL-5.5/mysql-5.5.35.tar.gztar zxvf mysql-5.5.35.tar.gzc 阅读全文
posted @ 2013-08-29 10:19 ecstore 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 安装wget http://nginx.org/download/nginx-1.5.1.tar.gztar zxvf nginx-1.5.1.tar.gzcd nginx-1.5.1./configure --prefix=/usr/local/webserver/nginxmake && make install配置启动脚本每次启动nginx都要找到nginx的启动目录,这样无疑很麻烦,以下是配置nginx在任意目录都可以执行nginx的启动、停止、重启的脚本执行以下命令,书写脚本vi /etc/init.d/nginx#!/bin/sh## nginx - this sc 阅读全文
posted @ 2013-08-29 10:16 ecstore 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 安装编译安装前的准备提示:默认的php安装后gd不支持jpg,只支持gif、png、bmp。所以首先要安装gd库wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gztar zxvf gd-2.0.33.tar.gzcd gd-2.0.33./con... 阅读全文
posted @ 2013-08-29 10:06 ecstore 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 用户列表文件:/etc/passwd用户组列表文件:/etc/group查看系统中有哪些用户:cut -d : -f 1 /etc/passwd查看可以登录系统的用户:cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1查看用户操作:w命令(需要root权限)查看某一用户:w 用户名查看登录用户:who查看用户登录历史记录:last查看用户的操作详细介绍命令:wUSER:显示登陆用户帐号名。用户重复登陆,该帐号也会重复出现。 TTY:用户登陆所用的终端。 FROM:显示用户在何处登陆系统。 LOGIN@:是LOGIN AT的意思,表示登 阅读全文
posted @ 2013-08-10 14:36 ecstore 阅读(614) 评论(0) 推荐(0) 编辑