MAC下重启NGINX失败的解决办法

Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid" 找了一波stackoverflow,试了那些方法之后,都没用,最后在某个BLOG找到了解决办法。 解决办法: $ sudo nginx -c /usr/local/etc/nginx/nginx.conf $ sudo nginx -s ...

Read More

Angular 2 vs. Angular 1: Key Differences

Recently, the Developer Preview of Angular 2 was released. This has some essential changes compared to Angular 1. Angular 2 is written entirely in Typescript and meets the ECMAScript 6 specification. Although one can’t build an entire application with it, because some specifications have not been implemented yet or are still subject to change, ...

Read More

AWS 免费套餐(不过期服务/产品)

这些免费套餐服务/产品在 AWS 免费套餐的 12 个月期限到期后不自动过期,并且可供所有 AWS 客户使用。 Amazon DynamoDB 25GB 存储容量、25 个读取容量单位、25 个写入容量单位 – 借助 Amazon DynamoDB,足以处理每月最多 2 ...

Read More

Go Cav Go LBJ

虽然很久不看球,但这次1:3落后夺冠真的看的我热血又沸腾。吾皇终于给自己的家乡带来了一座总冠军奖杯,实在太不容易了,几乎打满全场,拼到了最后一刻。历史第五,统治级三双。Irving的表现也必须称赞一波,大心脏,为大场面而生。   ...

Read More

Redis Sentinel

Redis主从结构搭建 搭建redis master 拷贝可执行文件 [root@rocket master]# pwd /usr/local/redisDB/master [root@rocket master]# cp /home/software/redis-2.8.17/src/redis-cli . [root@rocket master]# cp /home/software/redis-2.8.17/src/redis-server . 配置文件redis.conf # 守护进程模式 daemonize yes # pid ...

Read More

再看redis和memcache

Redis的存储方式 与Memcached仅支持简单的key-value结构的数据记录不同,Redis支持的数据类型要丰富得多。最为常用的数据类型主要由五种:String、Hash、List、Set和Sorted ...

Read More

六一

看了wikipedia才知道,原来全世界儿童节都不是同一天,天朝是6.1,美帝是Second Sunday of June,其他地方也是五花八门。   Gregorian calendar Occurrence Dates Country First Friday of January Jan 2, 2015 Jan 1, 2016 Jan 6, 2017  Bahamas 11 January  Tunisia Second ...

Read More