11 2011 档案

摘要:Windows:nslookup -d example.comLinux:dig example.com 阅读全文
posted @ 2011-11-30 18:17 sink_cup 阅读(792) 评论(0) 推荐(1) 编辑
摘要:Linux 添加 sudo 用户创建用户的时候,指定admin组,这样用户就有sudo权限了。如果没有admin组,试试sudo组。sudo useradd -m -s /bin/bash -g admin jimsudo passwd jim123456123456给老用户添加sudo权限sudo usermod -g admin jim参考资料:http://www.iteye.com/topic/607470 阅读全文
posted @ 2011-11-27 23:03 sink_cup 阅读(1407) 评论(1) 推荐(0) 编辑
摘要:编译安装好apache httpd以后,可以继续添加扩展mod_expires 用于发送header,设置静态文件的过期时间。参考:http://httpd.apache.org/docs/2.2/mod/mod_expires.htmlcd httpd-2.2.19/modules/metadatasudo /usr/local/apache2/bin/apxs -i -a -c mod_expires.cecho 'ExpiresActive On' | sudo tee -a /usr/local/apache2/conf/httpd.confecho 'File 阅读全文
posted @ 2011-11-13 13:55 sink_cup 阅读(709) 评论(1) 推荐(0) 编辑
摘要:REST API新版本上线后,旧版本要继续在线,所以要做多版本并行。服务器代码目录api.example.com/ 0.1/ controller model htdocs/index.php 0.2/ controller model htdocs/index.php之前做的URI是这样的:curl http://api.example.com/0.2/users/1web se... 阅读全文
posted @ 2011-11-05 17:06 sink_cup 阅读(5257) 评论(0) 推荐(0) 编辑

Creative Commons License

本站原创作品采用知识共享署名 3.0许可协议进行许可。

点击右上角即可分享
微信分享提示