当前位置:网站首页>Build fiora chat room with Tencent lightweight cloud
Build fiora chat room with Tencent lightweight cloud
2022-06-24 01:28:00 【Diligent thinking】
Preface
A few days ago, I heard a friend say , They led Tencent cloud light 246 Still eating ash , I saw this system in mengbei chat room
I feel very good
This article will teach you to use pagodas to build a chat room
Introduce
Fiora The system is very simple , It also has many functions , be based on node.js, mongodb, react and socket.io Etc author : Shredded sauce https://suisuijiang.com/ Github Address https://github.com/yinxin630/fiora function Good friends , group , The private chat , Group chat text , picture , Code ,url And so on Post Bar expression , Funny expression , Search for expression packs Desktop notification , Voice alert , Voice Announcements Custom desktop background , Theme color , Text color view online users , The function of the little black room forbids
List of supplies
A Tencent cloud lightweight application server ( If the demand is not large, you can choose 1h1g, Yes 246 If so, just get started ) And install the pagoda Tencent cloud version
Begin to build
First, open the firewall 9200 port
Then we go backstage in the usual way , It is not necessary to install the recommended plug-ins , Go directly to the software store , install
Nginx 1.20 PM2 Manager MongoDB Redis 6.2
Then back to the console , Enter the command su Get into root Account
If you don't remember your password, you can reset it
Get into root Let's install it after the account git, Because some of them are not installed
yum -y install git
from GitHub Get the items directly and put them in the custom folder , Such as fiora
git clone https://github.com/yinxin630/fiora.git -b master /fiora
Or download it directly , Go to the pagoda and upload
https://github.com/yinxin630/fiora/archive/master.zip
Then we switch to the site directory
cd /fiora
Install dependency
npm i -g yarn yarn
Let's move
npm run build:client npm run move-dist
Last start-up
npm start
Let's visit Website :9200
If you can't access it, you can go to the pagoda firewall
And then create a admin Account
To finish these , We'll come back ssh Look at the log userID
Console input command , Add him to the administrators group
First give node Make a soft link , Otherwise, it will fail to start later ln -sf $(which node) /usr/bin/node
Get users userid such as admin
yarn script getUserId admin
Set up Administrator Replace the red content below with the one taken above Userid
export Administrator= Content Port=9200
The following commands are copied into SSH Client running
cat > /etc/systemd/system/fiora.service <<EOF [Unit] Description=fiora After=network.target Wants=network.target
[Service] Type=simple PIDFile=/var/run/fiora.pid ExecStart=$(command -v npm) start WorkingDirectory=/opt/fiora Environment=NODE_ENV=production Administrator=$Administrator Port=$Port User=root Restart=on-failure RestartSec=42s
[Install] WantedBy=multi-user.target EOF
Set boot up systemctl start fiora
Enable service on power up systemctl enable fiora
Here we are , The chat room has been set up
There are many other functions , That's good
You can chat with your friends in the future
Add domain name inversion
Suddenly forget , At this time, the access address is still ip:9200 Well , We have to add a domain name
First, add a domain name to the advanced pagoda ( First analyze ), Address selection Fiora The catalog of
Then click the domain name , Options 【 Reverse proxy 】, Just set it up
really · end
边栏推荐
- Selenium crawls stocks in practice
- LMS Virtual. Derivation method of lab acoustic simulation results
- Leetcode lecture on algorithm interview for large factories 2 Time space complexity
- CODING CD
- Build a smart drug supervision platform based on easycvr video technology and build a drug safety firewall
- What is hypervisor? What is the difference between type 1 and type 2?
- Server performance monitoring: Best Practices for server monitoring
- 【Flutter】如何使用Flutter包和插件
- CDN access log quality performance monitoring and operation statistical analysis best practices
- This invincible design can analyze and operate any mathematical expression
猜你喜欢

Use recursion to form a multi-level directory tree structure, with possibly the most detailed notes of the whole network.
![[shutter] how to use shutter packages and plug-ins](/img/a6/e494dcdb2d3830b6d6c24d0ee05af2.png)
[shutter] how to use shutter packages and plug-ins

Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training

Shardingsphere-proxy-5.0.0 implementation of capacity range partition (V)

13 `bs_ duixiang. Tag tag ` get a tag object

js输入输出语句,变量

【Flutter】如何使用Flutter包和插件

Isn't this another go bug?

Cvpr2022 𞓜 thin domain adaptation
Talk to Wu Jiesheng, head of Alibaba cloud storage: my 20 years of data storage (unlimited growth)
随机推荐
"Ai+ education" and "Ai education": one for education and the other for Education
13 `bs_ duixiang. Tag tag ` get a tag object
所见之处都是我精准定位的范畴!显著图可视化新方法开源
On November 11, 2021, live broadcast e-commerce opened a new way to play
Handwritten digit recognition using SVM, Bayesian classification, binary tree and CNN
How to quickly convert stock code into int in quantitative trading?
Interviewer: why does the new generation memory need two survivor zones?
Pad User Guide
Real time preview of RTSP video based on webrtc
ctfhub---SSRF
November 20, 2021: the start and end times of a movie can be listed in a small array
Forward design of business application data technology architecture
【Flutter】如何使用Flutter包和插件
Grab startup logcat
How is the national standard easygbs video technology applied in the comprehensive supervision scenario of the power supply business hall?
Attack and defense world PyC trade
Relationship between continuous testing and quality assurance
Server performance monitoring: Best Practices for server monitoring
[OSG] OSG development (04) - create multiple scene views
What is the relationship between the Internet of things and artificial intelligence?