2016年4月13日 星期三

linux port - make sock


error:
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:port
 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:port
no listening sockets available, shutting down
Unable to open logs


解決方法:
$ sudo setenforce 0

2016年3月24日 星期四

redis type 型態對照

reids type

set :
create -> SADD
get -> SMEMBERS


string :
create -> MSET, SET
get -> MGET, GET

zset :
create -> ZSET
get -> ZRANGE

hash :
create -> HMSET
get -> HGET



2016年2月18日 星期四

[GCE] google compute engine指令


//設定project名稱
$ gcloud config set project [project name]

//ssh登入
$ gcloud compute ssh [vm name]