https://www.cnblogs.com/coxiseed/p/9851459.html
2世舰,U盤制作好了之后在需要安裝的主機(jī)上插入U(xiǎn)盤糜值,進(jìn)入boos界面嵌洼,選擇U盤啟動
3妻柒,設(shè)定管理員賬號密碼:管理員賬號root,密碼設(shè)置為admin2020
4猫缭,配置網(wǎng)絡(luò):使用nmtui命令配置靜態(tài)IP地址葱弟,設(shè)置好網(wǎng)絡(luò)之后重啟服務(wù)器;
5猜丹,至此芝加,服務(wù)器安裝Linux系統(tǒng)結(jié)束。
二射窒、在Linux服務(wù)器上搭建Springboot-vue前后端分離項(xiàng)目的運(yùn)行環(huán)境
1藏杖,查看Linux系統(tǒng)中yum下載安裝命令、wget下載命令是否齊全
2脉顿,下載Java運(yùn)行環(huán)境(yum install java )
3蝌麸,下載nginx并修改nginx配置文件(nginx.conf)
下載nginx使用 yum install nginx 命令會提示沒有可用的軟件包
使用命令sudo yum install epel-release安裝epel
nginx 安裝nginx
error_log? /var/log/nginx/error.log warn;
pid??????? /var/run/nginx.pid;
??? include?????? /etc/nginx/mime.types;
??? default_type? application/octet-stream;
??? log_format?main? '$remote_addr - $remote_user[$time_local] "$request" '
????????????????????? '$status $body_bytes_sent"$http_referer" '
?????????????????????'"$http_user_agent" "$http_x_forwarded_for"';
??? access_log?/var/log/nginx/access.log? main;
??? client_max_body_size 1024M;
??? include /etc/nginx/conf.d/*.conf;
??? #access_log?/var/log/nginx/host.access.log?main;
??????? root??/usr/share/nginx/water;
??????? index?index.html index.htm;
??????? 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;
http://localhost:8080/water-api;
??? #error_page?404????????????? /404.html;
??? # redirect server error pages to the staticpage /50x.html
??? error_page??500 502 503 504? /50x.html;
??????? root??/usr/share/nginx/water;
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
mkdir -p /opt/iowater創(chuàng)建一個(gè)iowater文件夾用于存放后端文件
build:stage
package
(nohup?java?-server?-jar?-Dspring.profiles.active=prod?-Dserver.port=8080?water-api.jar?&)