52ll.org
52ll.org

安装neko探针

安装包

apt-get -y update
apt-get install nodejs npm git build-essential -y

安装 node

bash -c "npm install n -g"
source /root/.bashrc
bash -c "n latest"
source /root/.bashrc
bash -c "npm install npm@latest -g"
source /root/.bashrc

拉取

git clone https://github.com/nkeonkeo/nekonekostatus.git
cd nekonekostatus
npm install

这里报错,降级到 node 16 解决了

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 16.12.0
nvm use 16.12.0

再继续

npm install

挂在后台持续运行

npm install forever -g
forever start nekonekostatus.js

nginx 反向代理关键配置

location / {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_redirect off;
            proxy_pass http://127.0.0.1:5555/;
        }

数据库文件

/home/wwwroot/neko-status/nekonekostatus/database/db.db

发表回复

textsms
account_circle
email

52ll.org

安装neko探针
安装包 apt-get -y update apt-get install nodejs npm git build-essential -y 安装 node bash -c "npm install n -g" source /root/.bashrc bash -c "n latest" source /r…
扫描二维码继续阅读
2023-02-02