○RAWGraphsの画面
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAXqivbmc7yWNLym9UFoqhKlZEauZ80RSsUDhaPhEIqKa8l1En4nF6aK9kMMbytF0JbZBOo1dxmT8nb3DPssUkWHAVaCpp27odD8viWcmk1xsuBLf8Mp27V3q0_zJa9U2u2byXAFYwwCFW/s320/rockylinux84_rawgraphs.png)
インストール方法
以下のコマンドを実行します。1. Python3/nodeなどのインストール
sudo dnf -y install curl git python3
sudo mkdir -p /opt/rawgraph
cd /opt/rawgraph
# install nodejs12
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo dnf -y install nodejs
sudo npm install -g bower
2. RAWGraphのインストール
sudo git clone https://github.com/densitydesign/raw.git
cd raw
sudo bower install --allow-root
sudo cp js/analytics.sample.js js/analytics.js
# register as a service
cat << EOF | sudo tee /etc/systemd/system/rawgraph.service
[Unit]
Description=rawgraph
[Service]
Type=simple
ExecStart=/usr/bin/python3 -m http.server 4000
WorkingDirectory=/opt/rawgraph/raw
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable rawgraph
sudo systemctl start rawgraph
3. firewallの設定
sudo firewall-cmd --add-port=4000/tcp --permanent
sudo firewall-cmd --reload
0 件のコメント:
コメントを投稿