2014年1月4日

摘要: 如题,我在win7系统下共享目录,mount到linux下,进行编译或者某些操作,出现Cannot allocate memory提示。修改以下两个键值,然后重启server服务,可以解决这个问题:打开注册表 regedit(1)如果这个键值没有,则创建:HKEY_LOCAL_MACHINE\SYS... 阅读全文
posted @ 2014-01-04 10:59 solohac 阅读(1786) 评论(0) 推荐(0) 编辑

2013年12月23日

摘要: 转自:http://www.jotop.com/2012/vpsinfo_0525/439.html美国的vps大多都是国外的时间,让我们的程序总是不适应。那么如何调整linux的时间为北京时间?修改linux vps的时间和时区,有什么办法? 首先,需要ssh登录vps或服务器: date 可以查... 阅读全文
posted @ 2013-12-23 16:14 solohac 阅读(171) 评论(0) 推荐(0) 编辑

2013年11月14日

摘要: 有三种类型的缓冲策略:无缓冲,块缓冲和行缓冲。当输出流无缓冲时,信息在写的同时出现于目标文件或终端上;当是块缓冲时,字符被暂存,然后一起写入;当是行缓冲时,字符被暂存,直到要输出一个新行符,或者从任何与终端设备连接的流中 (典型的是 stdin) 读取输入时才输出。函数 fflush(3) 可以用来... 阅读全文
posted @ 2013-11-14 13:05 solohac 阅读(296) 评论(0) 推荐(0) 编辑

2013年11月6日

摘要: 配置VNC服务参数文件编辑vncservers文件追加如下#vi /etc/sysconfig/vncseversVNCSERVERS="1:root"VNCSERVERARGS[1]="-name root -geometry 1280x720"VNCSERVERS="1:root 2:ivvr ... 阅读全文
posted @ 2013-11-06 17:37 solohac 阅读(228) 评论(0) 推荐(0) 编辑
摘要: vi /etc/yum.conf加入以下:proxy=http://代理服务器ip:port如果代理需要账号密码:proxy_username=userproxy_password=密码 阅读全文
posted @ 2013-11-06 10:47 solohac 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在 centos 5 下, 在 mysld 下面,添加一行log=/var/log/mysql.log然后执行如下命令touch /var/log/mysql.logchmod 777 /var/log/mysql.log然后重启 mysql 服务器 阅读全文
posted @ 2013-11-06 10:47 solohac 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 我对rabbitmq学习还不深入,这些翻译仅仅做资料保存,希望不要误导大家。There’s a dirty secret about creating queues and exchanges in Rabbit: by default theydon’t survive reboot. That’... 阅读全文
posted @ 2013-11-06 10:15 solohac 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 我对rabbitmq学习还不深入,这些翻译仅仅做资料保存,希望不要误导大家。With exchanges, bindings, and queues under your belt, you might think you have allthe coolness that is Rabbit fi... 阅读全文
posted @ 2013-11-06 10:14 solohac 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 我对rabbitmq学习还不深入,这些翻译仅仅做资料保存,希望不要误导大家。You have consumers and producers under your belt, and now you’re itching to getstarted eh? Not so fast. First, y... 阅读全文
posted @ 2013-11-06 10:12 solohac 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 我对rabbitmq学习还不深入,这些翻译仅仅做资料保存,希望不要误导大家。For now, all you need to know is that producers create messagesand label them for routing (see figure 2.1).现在需要知... 阅读全文
posted @ 2013-11-06 10:09 solohac 阅读(245) 评论(0) 推荐(0) 编辑

导航