Notepad++ built-in environment variables

2017.05.11

If you wanna run external tools, you may need to know the following built-in environment variables:

Variable name

Contents in the above example ......

Nginx 启用 https 连接

2017.03.14

想要启用 https 连接首先需要证书. 我们可以使用最近比较流行的 Let’s Encrypt 提供的免费证书. 但是我使用 Let's Encrypt 官方提供的申请脚本申请的时候, 总是不能成功. 于是使用了 v2ex 上有人推荐的大神制作的 acme.sh 脚本.

虽然 ac......

Ubuntu 下 Nginx 相关操作

2017.03.13

安装 Nginx:

sudo apt-get install nginx

启动 Nginx:

sudo nginx -c /etc/nginx/nginx.conf

重启 Nginx:

sudo service nginx reload # or: sudo servi......

Ubuntu 下 Apache 相关操作

2017.03.13

启动 Apache 服务

sudo /etc/init.d/apache2 start

关闭 Apache 服务

sudo /etc/init.d/apache2 stop

重启 Apache 服务

sudo /etc/init.d/apache2 restart

树莓派开机自动运行

2017.03.01

sudo vim /etc/rc.local

sudo /etc/rc.local

sudo systemctl enable rc-local.service

sudo systemctl start rc-local.service

sudo systemctl status rc-local......