Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sf
/
webrtcnodeserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4e6cdc41
authored
Oct 17, 2023
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ab06eee4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
2 deletions
+73
-2
app.js
+2
-2
部署.js
+71
-0
No files found.
app.js
View file @
4e6cdc41
...
@@ -92,8 +92,8 @@ httpsServer.on('close', () => {
...
@@ -92,8 +92,8 @@ httpsServer.on('close', () => {
console
.
log
(
'HTTPS服务器关闭,连接断开'
);
console
.
log
(
'HTTPS服务器关闭,连接断开'
);
});
});
httpsServer
.
listen
(
8002
,
()
=>
{
httpsServer
.
listen
(
3000
,
()
=>
{
console
.
log
(
'server
8002
ok'
);
console
.
log
(
'server
3000
ok'
);
});
});
...
...
部署.js
0 → 100644
View file @
4e6cdc41
// 院内计算机环境 见PNG
// 院内计算机环境 见PNG
// 院内容器环境 todo 未知
// 阿里云 服务器 模拟环境
查看系统架构
uname
-
p
x86_64
aarch64
注意:如果该系统是
aarch64
架构,
dockerhub
上的大部分镜像都是
x86_64
架构下的,在使用
dockerhub
等平台的镜像时,一定要注意其架构是否支持
aarch64
!
uname
-
a
Linux
host
-
192
-
168
-
0
-
251
4.19
.
90
-
52.22
.
v2207
.
ky10
.
x86_64
#
1
SMP
Tue
Mar
14
12
:
19
:
10
CST
2023
x86_64
x86_64
x86_64
GNU
/
Linux
cat
/
proc
/
version
Linux
version
4.19
.
90
-
52.22
.
v2207
.
ky10
.
x86_64
(
KYLINSOFT
@
COMPILE
.
MACHINE
)
(
gcc
version
7.3
.
0
(
GCC
))
#
1
SMP
Tue
Mar
14
12
:
19
:
10
CST
2023
cat
/
etc
/
kylin
-
release
Kylin
Linux
Advanced
Server
release
V10
(
Lance
)
// 银河麒麟部署说明
1
、安装
docker
// 参考 https://huaweicloud.csdn.net/633114ead3efff3090b51a67.html?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Eactivity-1-126287016-blog-131802968.235%5Ev38%5Epc_relevant_sort_base1&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Eactivity-1-126287016-blog-131802968.235%5Ev38%5Epc_relevant_sort_base1&utm_relevant_index=2
下载安装
docker
-
ce
https
:
//download.docker.com/linux/static/stable/
下载稳定版本
docker
-
19.03
.
12
wget
https
:
//download.docker.com/linux/static/stable/x86_64/docker-19.03.12.tgz
tar
-
zxvf
docker
-
19.03
.
12
.
tgz
mv
docker
/* /usr/bin/
vi /usr/lib/systemd/system/docker.service
配置添加 systemd
编辑docker的系统服务文件docker.service
重新加载和重启docker
systemctl daemon-reload
systemctl restart docker
查看docker详细信息
2、node 服务镜像
docker commit -a "ff" -m "nodeserver" 1dbd77eed9ee nodeserver:v1
镜像导出
docker save bffa5166d7f9 > /root/nodeserver.tar
docker image rm -f nodeserver:v1
镜像导入
docker load < nodeserver.tar
docker tag bffa5166d7f9 nodeserver:v1
docker run -i -t -d -p 8002:3000 --name nodeserver nodeserver
docker exec -it nodeserver /bin/bash
cd webrtc
cd NodeServer
pm2 start app.js
docker commit -m="commit jdk" --author="gutianlangyu" ae56f6cad215 gutianlangyu/commit_jdk:v1:使用commit命令将容器里的所有修改提交到本地库中,形成以一个全新的镜像,会返回新镜像的完整ID。
完整ID可以通过docker ps -l -q(用于获取最近创建的容器ID)命令得到。
-m:描述我们此次创建image的信息。
--author:用来指定作者。
ae56f6cad215:被修改的基础镜像ID。
gutianlangyu/commit_jdk:v1:仓库名/镜像名:TAG名。
3、coturn 服务镜像
镜像导出
docker save 170432ce18ed > /root/coturn.tar
镜像导入
docker load < coturn.tar
docker tag 170432ce18ed coturn:v1
docker run -d -i -t --name coturn -p 3478:3478 -p 3478:3478/udp -e TURN_USERNAME=username -e TURN_PASSWORD=password coturn:v1
4、 https://114.115.135.46:8002/2.html
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment