redis安装
- 
							
							
							
							
							
							
安装nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs安装redis
sudo apt-get install software-properties-common sudo add-apt-repository ppa:chris-lea/redis-server sudo apt-get update sudo apt -y install redis-server创建用户
adduser dyfluid更改编辑器:
sudo update-alternatives --config editor添加用户权限:
visudodyfluid ALL=(ALL:ALL) ALL关闭停止:
/etc/init.d/redis-server stop /etc/init.d/redis-server startcd $HOME git clone https://github.com/NodeBB/NodeBB.git nodebb cd nodebb ./nodebb setup清楚ssh
rm ~/.ssh/known_hostsNginx做ln -s注意使用绝对路径
ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/example.com.confsystemctl stop nginx.service systemctl start nginx.service systemctl status nginx.service