安装
git下载地址:https://github.com/docker/compose/releases
推荐pip安装
1 | sudo pip install -U docker-compose |
git下载地址:https://github.com/docker/compose/releases
推荐pip安装
1 | sudo pip install -U docker-compose |
卸载旧版sudo apt-get purge docker.io*
编辑 /etc/apt/sources.list.d/docker.list
1 | echo 'deb https://apt.dockerproject.org/repo debian-jessie main'> /etc/apt/sources.list.d/docker.list |
安装依赖: apt-transport-https
1 | sudo apt-get install docker-engine |
创建组
1 | cat /etc/group | grep ^docker #不存在 |
Redis live
Redis Live是一个用来监控redis实例,分析查询语句并且有web界面的监控工具,使用python编写
type | description | location |
---|---|---|
home | Home of elasticsearch installation | /usr/share/elasticsearch |
bin | Binary scripts including elasticsearch to start a node | /usr/share/elasticsearch/bin |
conf | Configuration files elasticsearch.yml and logging.yml | /etc/elasticsearch |
conf | Environment variables including heap size,file descriptors | /etc/default/elasticsearch |
data | The location of the data files | /var/lib/elasticsearch/ |
logs | Log files location | /var/log/elasticsearch |
plugins | Plugin files location | /usr/share/elasticsearch/plugins |
下载地址
bin目录执行安装
1 | F:\ELK\elasticsearch-2.4.1\bin>service install |
安装成功,如果启动失败(进logs目录,查看错误信息)
node https://nodejs.org/zh-cn/download/
git
hexo
1 | $tar -zxvf node.tar.gz |
添加环境变量
1 | #set nodejs |
1 | #私钥 |
1 | #公钥 |
1 | <!--more--> |
第一次填写信息
1 | >openssl req -new -key ca.key -out ca.csr -config E:\Git\mingw64\ssl\openssl.cnf |
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:localhost
Email Address []:
Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:12345678
An optional company name []:cs
1 | >openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt -days 365 |
服务器端需要向 CA 机构申请签名证书,在申请签名证书之前依然是创建自己的 CSR 文件 与第一次信息填写一样
1 | >openssl req -new -key server.key -out server.csr -config E:\Git\mingw64\ssl\openssl.cnf |
向自己的 CA 机构申请证书,签名过程需要 CA 的证书和私钥参与,最终颁发一个带有 CA 签名的证书
1 | >openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in server.csr -out server.crt |
Signature ok
subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=localhost
Getting CA Private Key
使用openssl 进行转换
1 | >openssl x509 -in server.crt -out server.cer -outform der |
生成p12
1 | F:\logs\http>openssl pkcs12 -export -clcerts -in server.crt -inkey server.key -out client.p12 |