Centos7 配置 Apache + Node.js with SSL

之前一直用的是LNMP,配合Wordpress效果还不错。最近自己也写了不少Javascript,想了想尝试换成Node.JS加Ghost博客。考虑到Node本身的局限,以及之后有可能架设多个网站,用Apache做反向代理(当然Nginx也可以)。 在Centos下安装Apache yum -y update yum -y install httpd systemctl enable httpd 可以用 apachectl -V 命令看到当前安装的版本。这里安装的是Apache/2.

read more »

Shadowsocks systemd 配置

更新了下服务器,第一件事当然是配Shadowsocks了,这次换上了新的Centos 7,刚好可以用systemd管理服务,于是顺手配置了nobody自启动的Shadowsocks服务,配置文件如下: /usr/lib/systemd/system/shadowsocks.service [Unit] Description=Shadowsocks Server After=network.target [Service] PermissionsStartOnly=true ExecStartPre=/bin/mkdir

read more »