1.前提環境
OS:CentOS stream9
2.screenのinstall
# dnf install epel-release # dnf --enablerepo=epel install screen
3.nodejsのinstallは省略
・nodejs のinstall後
# npm list -g --depth=0 /usr/local/lib |- corepack@0.12.1 |- n@9.0.0 |- npm@8.15.1 |- pm2@5.2.0 |- uuid@8.3.2 # # node -v v18.7.0
4.libp2p-webrtc-star-signalling-server のinstall
# npm install -g libp2p-webrtc-star-signalling-server added 81 packages, and audited 82 packages in 18s 3 packages are looking for funding run `npm fund` for details found 0 vulnerabilities #
5.port開放
# firewall-cmd --add-port=9090/tcp --zone=public --permanent # firewall-cmd --add-port=13579/tcp --zone=public --permanent # firewall-cmd --reload # firewall-cmd --list-all #
6.userの追加
# adduser webrtc-star # passwd webrtc-star
7.作成したuserでログイン
$
8.screen でwindow作成
・terminalを閉じてもいいように
$ screen $ Ctrl-a c
9.To start a server run:
$ webrtc-star --port=13579 --host=127.0.0.1 Listening on: http://127.0.0.1:13579