nginx 配置https

update: 2018-08-20

已支持泛域名申请:https://certbot.eff.org/

Trying to get a wildcard certificate? Please use the dropdown menus below to get instructions specific to your system, and read those instructions carefully.


$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx 
$ service nginx stop
$ certbot certonly --standalone --email your@email.com -d yourdomain.com

安装参考:https://www.cnblogs.com/SzeCheng/p/8075799.html
证书三个月需要续签一次,使用crontab每个月检查一次,自动续期
0 0 1 * * certbot renew -q --pre-hook "service nginx stop" --post-hook "service nginx start"

2018/2/17 20:11 下午 posted in  后端

Ubuntu 14.04.5 安装 MySQL 5.7

安装

下载地址:https://dev.mysql.com/downloads/mysql/

  • wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar
Read more   2018/2/16 20:0 下午 posted in  后端

MySQL+Koa从0开始

2018/2/13 20:49 下午 posted in  后端