包剪锤游戏,C和Lua的对决! 主要为了练习C和Lua的相互调用。
分类:
其他好文 时间:
2014-05-09 08:26:52
阅读次数:
401
转自http://my.oschina.net/mayqlzu/blog/113528问题:最近lua很火,因为《愤怒的小鸟》使用了lua,ios上有lua解释器?它是怎么嵌入大ios中的呢?lua的官网说:"lua
is an embeddable scripting language",怎么理解...
分类:
其他好文 时间:
2014-05-09 05:32:57
阅读次数:
264
function myfunction(msg) print("this is msg fun "
.. msg);endlocal fun =_G["myfunction"];if fun then fun("is ok");end
分类:
其他好文 时间:
2014-05-09 04:18:05
阅读次数:
1155
1、Ubuntu12.04 安装nginx+php+mysql
(lnmp)的web服务器环境http://blog.db89.org/ubuntu12-04-install-nginx-php-mysql-lnmp-of-the-web-server-environment/2、Ubuntu
12...
分类:
数据库 时间:
2014-05-09 03:57:10
阅读次数:
308
使用php写的,方便点 $LOG"; `$cmd`; _debug($cmd); //
再使用goaccess生成网页 $cmd = "/usr/local/bin/goaccess -f $LOG -a >
/yfdata/mobile/$HTML"; `$cmd`;...
分类:
数据库 时间:
2014-05-09 02:56:20
阅读次数:
371
1, Nginx 安装,http://nginx.org/en/download.html.下载解压,configure,make ,make install.安装过程中确实包,需要先下载安装依赖包2,安装lighttpd的spawn-fastcgi 下载http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz ./configuremake...
分类:
其他好文 时间:
2014-05-09 01:46:02
阅读次数:
358
基于Nginx反向代理及负载均衡参考:http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass只要没有被启用,默认就是开启的,因为proxy属于nginx内置标准模块,通常实现代理的时候,最核心模块是proxy_pass,用于将用户请求的rui递交至上游服务器的某个URI但这个..
分类:
其他好文 时间:
2014-05-09 00:52:25
阅读次数:
484
Haproxy+Keepalived实现负载均衡高可用Nginx+keepalived可以参考我的博文Lvs+keepalived可以参考我的博文背景:Haproxy+Keepalived的优势何在,如果你的网站并发量挺大的但是还不至于大到使用lvs的地步,并且又想对七层协议进行过滤。可能需要实现动静分离,又或者是基于内容的..
分类:
其他好文 时间:
2014-05-09 00:48:33
阅读次数:
512
参考文档:http://blog.csdn.net/xiaodan007/article/details/7096718function sz_T2S(_t)
local szRet = "{" function doT2S(_i, _v) if "number" == t...
分类:
其他好文 时间:
2014-05-08 22:47:29
阅读次数:
347
使用shell判断系统时区if[[!`grep-aCST-8/etc/localtime`]];then
rm-rf/etc/localtime
ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
fiNginx日志切割脚本#!/bin/bash
logs_path="/alidata/server/log/nginx/"
mv${logs_path}access.log${logs_path}access_$(date-d"ye..
分类:
系统相关 时间:
2014-05-08 16:41:18
阅读次数:
403