Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
doc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZTGK
doc
Commits
3f709eff
Commit
3f709eff
authored
Jul 08, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新配置文件
parent
a6011222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
2 deletions
+77
-2
1-服务器配置.md
1-程序相关/1-服务器配置.md
+77
-2
No files found.
1-程序相关/1-服务器配置.md
View file @
3f709eff
...
...
@@ -13,4 +13,80 @@ ip|`47.94.207.62`|ip地址
文件上传路径|
`/opt/ztgk/file`
前端部署地址|
`/opt/ztgk/html/dist`
后端部署地址|
`/opt/ztgk/java`
项目日志集合|
`/opt/ztgk/logs`
\ No newline at end of file
项目日志集合|
`/opt/ztgk/logs`
# 3.nginx配置
```
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
# gzip config
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
location / {
# root html;
root /opt/ztgk/html/dist/;
index index.html index.htm;
}
#杭州地铁公务管理系统前端静态页面
location /hzsomms/html/ {
root /opt/ztgk/html/dist/;
index index.html;
try_files $uri $uri/ /index.html;
# root /opt/ztgk/html/dist/;
# index index.html index.htm;
}
#杭州地铁公务管理系统后端api
location /hzsomms/api/ {
proxy_pass http://localhost:16888/hzsomms/api/;
}
error_page 404 /index.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
```
# 4.后端部署
> 1.跳转到java包目录
```
shell
cd
/opt/ztgk/java
```
>
2.通过ftp工具将jar包上传
>
3.通过查找端口查找相应的应用&杀掉相关应用
```
shell
lsof -i:16888
kill -9 pid
```
> 4.运行java
```
shell
nohup java -jar jeecg-module-system-3.5.1.jar > consoleMsg.log 2>&1 &
```
# 5.前端部署
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment