我菜固我在

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 ··· 11 下一页

2013年1月11日 #

摘要: 如题 阅读全文
posted @ 2013-01-11 17:23 大侠(cer) 阅读(1851) 评论(0) 推荐(0) 编辑

2012年12月19日 #

摘要: js方法isNaN使用时注意,“1.”这样子的东西他也会认为是数字 阅读全文
posted @ 2012-12-19 17:26 大侠(cer) 阅读(259) 评论(0) 推荐(0) 编辑

2012年9月29日 #

摘要: 1.问题:小团队,快速迭代开发,版本发布没有经过测试就要放出去,怎样在内网测试过后在外网能在真实环境让内部人员再过一次测试且不影响外网用户2.实现思想:a.至少要有两台机器b.公司是统一出口IPc.根据IP将请求转发到不同的机器3.nginx配制:location / { content_by_lua ' myIP = ngx.req.get_headers()["X-Real-IP"] if myIP == nil then myIP = ngx.req.get_headers()["x_forwarded_for"] end if my... 阅读全文
posted @ 2012-09-29 17:35 大侠(cer) 阅读(8433) 评论(0) 推荐(0) 编辑

2012年9月24日 #

摘要: 1.下载nginxwget http://nginx.org/download/nginx-1.2.2.tar.gz2.安装gcc sudo apt-getinstallgcc3.下载LuaJITwgethttp://luajit.org/download/LuaJIT-2.0.0-beta10.tar.gz4. 安装LuaJITtar -xzvf LuaJIT-2.0.0-beta10.tar.gzcdLuaJIT-2.0.0-beta10make && sudo make install5.下载ngx_devel_kit(在这个页面找:https://github.com/ 阅读全文
posted @ 2012-09-24 17:56 大侠(cer) 阅读(4346) 评论(0) 推荐(0) 编辑

2012年8月10日 #

摘要: 1.前题,有两台机器,A和B,要将A的东西同步到B中2.同台机器请先安装rsync3.请在B机器vi /etc/rsyncd.confpid file = /var/run/rsyncd.pidlock file = /var/run/rsync.locklog file = /var/log/rsyncd.log[modle_name] uid = tomcat gid = tomcat path = 同步过来保存文件的目录 comment = code of user_face read only = no strict modes = yes r... 阅读全文
posted @ 2012-08-10 17:53 大侠(cer) 阅读(2143) 评论(0) 推荐(0) 编辑

2012年7月7日 #

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-07 09:30 大侠(cer) 阅读(2595) 评论(0) 推荐(1) 编辑

2012年5月24日 #

摘要: 1.sudo apt-get install imagemagicklibjmagick6-java2.在任意目录下建立JavaLibraryPath.java文件,内容如下:public class JavaLibraryPath{ public static void main(String[] args) throws Exception { System.out.println(System.getProperty("java.library.path")); }}3.执行:javac JavaLibraryPath.java4.执行:java JavaLibrar 阅读全文
posted @ 2012-05-24 19:34 大侠(cer) 阅读(232) 评论(0) 推荐(0) 编辑

2012年3月11日 #

摘要: 1.安装apache及svn的windows版我安装的版本是:httpd-2.2.22-win32-x86-openssl-0.9.8t.msi和svn-win32-1.5.0.zipsvn是解压就可以了2. 解svn安装目录下\bin下的mod_authz_svn.so、mod_dav_svn.so拷贝到apache/modules下3.将svn安装目录下\bin下的libdb44.dll拷贝到apache/bin下4.修改apache安装目录下conf/httpd.confa.将LoadModule dav_module modules/mod_dav.soLoadModule dav_f 阅读全文
posted @ 2012-03-11 11:24 大侠(cer) 阅读(897) 评论(0) 推荐(0) 编辑

2012年2月15日 #

摘要: 一.amoeba的安装1.安装好java2.将amoeba的包解压到一个目录就可以了,我是解压到/usr/local/amoeba-mysql-binary-2.1.0/ 目录3.进入bin目录,运行:./amoeba如果看到:amoeba start|stop就代表成功了二.amoeba的配制1.单机器代理实现a.修改conf/dbServers.xml ,修改schema及password为真实的情况b.修改conf/amoeba.xml,修改里的port及password为代理的情况c.nohup ./amoeba start &启动d.mysql -uroot -p代理的密码 阅读全文
posted @ 2012-02-15 14:35 大侠(cer) 阅读(929) 评论(0) 推荐(0) 编辑

2012年2月10日 #

摘要: 1.安装jdk2.安装ant3.安装ivya、下载apache ivy:http://labs.renren.com/apache-mirror//ant/ivy/2.2.0/apache-ivy-2.2.0-bin.tar.gzb、tar xzvf apache-ivy-2.2.0-bin.tar.gzc、cp ivy-2.2.0.jar to ANT_HOME/libd、goto apache-ivy-2.2.0/src/example/hello-ivy, and run ant,也就是在目录apache-ivy-2.2.0/src/example/hello-ivy,运行ant如果看到 阅读全文
posted @ 2012-02-10 15:44 大侠(cer) 阅读(3374) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 11 下一页