学习
【摘要】 1.配置nodejs [root@chinaskill-sql-0001 rocket]# tar -xvf node-v12.16.1-linux-x64.tar.gz -C /usr/local/ [root@chinaskill-sql-0001 local]# ln -s /usr/local/node-v12.16.1-linux-x64/bin/* /usr/local/bin/...
1.配置nodejs
[root@chinaskill-sql-0001 rocket]# tar -xvf node-v12.16.1-linux-x64.tar.gz -C
/usr/local/
[root@chinaskill-sql-0001 local]# ln -s /usr/local/node-v12.16.1-linux-x64/bin/*
/usr/local/bin/
[root@chinaskill-sql-0001 local]# ll /usr/local/bin/
total 32
-rwxr-xr-x 1 root root 390 Feb 10 2022 cloud-id
-rwxr-xr-x 1 root root 394 Feb 10 2022 cloud-init
-rwxr-xr-x 1 root root 2108 Feb 10 2022 cloud-init-per
-rwxr-xr-x 1 root root 1003 Feb 10 2022 jsondiff
-rwxr-xr-x 1 root root 3858 Feb 10 2022 jsonpatch
-rwxr-xr-x 1 root root 1837 Feb 10 2022 jsonpointer
-rwxr-xr-x 1 root root 397 Feb 10 2022 jsonschema
lrwxrwxrwx 1 root root 43 Oct 31 10:23 node -> /usr/local/node-v12.16.1-linux
x64/bin/node
-rwxr-xr-x 1 root root 424 Feb 10 2022 normalizer
lrwxrwxrwx 1 root root 42 Oct 31 10:23 npm -> /usr/local/node-v12.16.1-linux
x64/bin/npm
1.sql-1节点执行:
[root@chinaskill-sql-0001 rocket]# tar xf rocket.chat-3.2.2.tgz -C /usr/local/
[root@chinaskill-sql-1 server]# yum install gcc gcc-c++ make glibc-static -y
[root@chinaskill-sql-0001 local]# cd bundle/
[root@chinaskill-sql-0001 bundle]# cd programs/server/
[root@chinaskill-sql-0001 server]# npm install #如果出现报错可以切换nodejs版本来安装
我这里切换了nodejs17的版本
[root@chinaskill-sql-0001 server]# wget
https://nodejs.org/download/release/v17.0.0/node-v17.0.0-linux-x64.tar.gz
[root@chinaskill-sql-1 server]# npm install -g npm@8.19.2
设置环境变量(ip写内网IP):
[root@chinaskill-sql ~]# export ROOT_URL='http://localhost:3000'
[root@chinaskill-sql ~]# export PORT="3000"
[root@chinaskill-sql ~]# export
MONGO_URL='mongodb://172.16.2.87:27017/rocketchat?replicsSet=rs'
[root@chinaskill-sql ~]# export
MONGO_OPLOG_URL=mongodb://172.16.2.87:27017/local?replicaSet=rs
[root@chinaskill-sql ~]#
[root@chinaskill-sql-1 bundle]# node main.js
Setting default file store to GridFS
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
Setting default file store to GridFS
ufs: temp directory created at "/tmp/ufs"
Loaded the Apps Framework and loaded a total of 0 Apps!
Using GridFS for custom sounds storage
Using GridFS for custom emoji storage
Updating process.env.MAIL_URL【题目 8】NAT 网关[0.5 分]
创建一个公网 NAT 网关,具体配置如下:
(1)名称为:kcloud-nat;
(2)虚拟私有云:intnetX;
(3)子网:intnetX-server;
(4)规则:内部子网地址访问外网;
(5)设置 Chinaskill-node-1 云服务器 3000 端口转换为外部 3000 服务端口。
创建完成后提交当前的 AK(SecretId)、SK(SecretKey)和 NAT 网关的 ID 到答题框。
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
➔ System ➔ startup
➔ +----------------------------------------------+
➔ | SERVER RUNNING |
➔ +----------------------------------------------+
➔ | |
➔ | Rocket.Chat Version: 3.2.2 |
➔ | NodeJS Version: 12.16.1 - x64 |
➔ | MongoDB Version: 4.0.28 |
➔ | MongoDB Engine: wiredTiger |
➔ | Platform: linux |
➔ | Process Port: 3000 |
➔ | Site URL: http://localhost:3000 |
➔ | ReplicaSet OpLog: Enabled |
➔ | Commit Hash: a720d25f4e |
➔ | Commit Branch: HEAD |
➔ | |
➔ +----------------------------------------------+
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)