current position:Home>Ubuntu deployment according to Vue version

Ubuntu deployment according to Vue version

2022-06-24 09:45:00Gonggui buys his deer

ubuntu Deploy ruoyi vue edition
It works apt install Don't fix those moths
Simplicity is aesthetics

install mysql

apt update
apt upgrade

apt install mysql-server

modify my.cnf Of bind-address=

ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password by ‘ password ’;

CREATE USER ‘root’@‘%’ IDENTIFIED BY ‘ password ’;
GRANT ALL ON . TO ‘root’@‘%’;
ALTER USER ‘root’@‘%’ IDENTIFIED WITH mysql_native_password BY ‘ password ’;

install redis

apt install redis-server

install java8

apt install openjdk-8-jdk

java -version

install nginx

apt install nginx
Verify that the installation was successful
sudo systemctl status nginx
Modify the configuration

server {
	listen       80;

	location / {
        root   /usr/ruoyi/dist;
		try_files $uri $uri/ /index.html;
        index  index.html index.htm;
	location /prod-api/{
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header REMOTE-HOST $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_pass http://localhost:8080/;
    error_page   500 502 503 504  /50x.html;
        location = /50x.html {
             root   html;

copyright notice
author[Gonggui buys his deer],Please bring the original link to reprint, thank you.

Random recommended