lets-chat是一款基于NodeJS的聊天室软件,支持聊天记录,是一个备用聊天方案。
Node.js
1 2 3 |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs node --version |
MongoDB
1 2 3 |
sudo apt-get update sudo apt-get install mongodb mongo |
Python
1 2 |
# apt install python python3 # python --version |
Mod Proxy
1 2 3 4 5 |
sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod proxy_balancer sudo a2enmod lbmethod_byrequests sudo systemctl restart apache2 |
Site Conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<VirtualHost *:80> ServerName lets-chat.us.minirplus.com ServerSignature Off ProxyRequests Off ProxyMaxForwards 100 ProxyPreserveHost On ProxyPass / http://localhost:5000/ ProxyPassReverse / http://localhost:5000/ </VirtualHost> <IfModule mod_ssl.c> <VirtualHost *:443> ServerName lets-chat.us.minirplus.com ServerSignature Off Redirect permanent / http://lets-chat.us.minirplus.com/ </VirtualHost> </IfModule> |
Screen
1 2 3 4 5 |
apt-get install screen screen -dmS backendapp screen -list screen -r backendapp npm start |
There are no comments yet