安装nodejs

apt update

curl -sL https://deb.nodesource.com/setup_16.x | sudo bash –

sudo apt -y install nodejs

 

apt install  mysql-server

mysql -u root -p

CREATE USER ‘admin’@’%’ IDENTIFIED BY ‘pass12345’;

 grant all privileges on *.* to ‘admin’@’%’;

 

apt install redis-server

systemctl status redis-server

 

  1. apt install nginx
  1. systemctl status nginx
  1. sudo systemctl enable nginx
  1. sudo nano /etc/nginx/nginx.conf

    server {
    listen 80;
    server_name admin.api.lingbits.com;
    location / {
    proxy_pass http://127.0.0.1:7001;
    }
    }
  1. sudo nginx -t
  1. sudo systemctl restart nginx

  1.  
版权声明:本文为chendaleiQQ原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/chendaleiQQ/p/16965657.html