当前位置: 首页 > news >正文

百度问答下载安装seo查询工具

百度问答下载安装,seo查询工具,网站域名注册申请,襄阳网络公司 网站建设目录 一、环境配置 redis nginx(宿主机|dokcer) 1.宿主机 2.docker 二、打包jar包 0.查看后端配置 1.打包后端 2.打包前端 三、启动 1.后端 2.前端 四、以上部署常见命令/错误 一、环境配置 之前的课都配过,先看看自己配了没 看看…

目录

一、环境配置

redis

nginx(宿主机|dokcer)

1.宿主机

2.docker

二、打包jar包

0.查看后端配置

1.打包后端

2.打包前端

三、启动

1.后端

2.前端

 四、以上部署常见命令/错误


一、环境配置

之前的课都配过,先看看自己配了没

 看看启动了啥  docker ps

redis

见上  redis启用过了

nginx(宿主机|dokcer)

1.宿主机

强制启动,查看是否启动成功,没有就是端口占用,关了就行

 如果有以下,则证明是docker里边的,要么见2,要么停了dokcer再1

2.docker

docker run -d --name nginx\-p 80:80 \--restart=always \-v /opt/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \-v /opt/nginx/html/dist:/usr/share/nginx/html \nginx:1.25.0

二、打包jar包

0.查看后端配置

1.打包后端

打包之后的在这里👇

2.打包前端

三、启动

1.后端

 

切换到自己的jar包放置路径
java -jar ruoyi-admin.jar

 这样就启动成功后端了

 访问路径  公网地址:8080

2.前端

把打包好的dist复制到宿主机上,注意自己的路径

 更改这里边的conf

 主要更改地方和源码在👇


#user  nobody;
worker_processes  1;#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {worker_connections  1024;
}http {include       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  logs/access.log  main;sendfile        on;#tcp_nopush     on;#keepalive_timeout  0;keepalive_timeout  65;#gzip  on;server {listen       80;server_name  82.157.170.39 localhost;#charset koi8-r;#access_log  logs/host.access.log  main;location / {root   /opt/nginx/html/dist;try_files $uri $uri/ /index.html;index  index.html index.htm;}location /prod-api/ {proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://172.17.0.1:8080/;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   /opt/nginx/html/dist;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {#    listen       8000;#    listen       somename:8080;#    server_name  somename  alias  another.alias;#    location / {#        root   html;#        index  index.html index.htm;#    }#}# HTTPS server##server {#    listen       443 ssl;#    server_name  localhost;#    ssl_certificate      cert.pem;#    ssl_certificate_key  cert.key;#    ssl_session_cache    shared:SSL:1m;#    ssl_session_timeout  5m;#    ssl_ciphers  HIGH:!aNULL:!MD5;#    ssl_prefer_server_ciphers  on;#    location / {#        root   html;#        index  index.html index.htm;#    }#}}

 运行地址  公网地址  出来验证码就算对了

 四、以上部署常见命令/错误

#查看端口是否被占用
sudo netstat -tulnp | grep :80#查看进程是否启动
ps aux | grep nginx#进入容器内部
docker exec -it nginx /bin/bash#查看容器内nginx.conf文件内容
cat etc/nginx/nginx.conf#关于防火墙
systemctl start firewalld 开启防火墙systemctl restart firewalld 重启防火墙systemctl status firewalld 查看防火墙状态systemctl disable firewalld 开机自动不启动防火墙firewall-cmd --permanent --add-port=端口/tcp 设置防火墙放
行端口,此操作需要重启防火墙生效# 重新加载防火墙规则
firewall-cmd --reload# 详细查看放行端口
firewall-cmd --list-all

后端没什么大问题,主要是前端

如果有404 500  页面无法访问错误,就是nginx.conf配置有错,或者nginx启动有错

http://www.dtcms.com/a/488540.html

相关文章:

  • 海关网站建设方案网站建设公开
  • 兰州网站建设运营方案如何制作自己的网站链接视频
  • 网站关键词排名突然没了宜宾市珙县住房城乡建设网站
  • 浅谈高校网站群的建设泰州网络营销
  • 外贸网站违反谷歌规则网站公告怎么做
  • 免费搭建贴吧系统网站wordpress管理界面更名
  • 以AtomicInteger为例的Atomic 类的底层CAS细节理解
  • 免费网站域名注册申请同一服务器建两个wordpress
  • 中国建设银行安徽省分行网站广州icp网站测评
  • 视频压缩包加密的操作
  • 网站如何做的看起来高大上有没有可以免费的片
  • Manim作图结构基本初探
  • 长春建设公司网站搜索引擎seo推广
  • 佛山市住房建设局网站投放广告的渠道有哪些
  • VB.NET 中的常量与变量
  • 推广发帖网站去哪找wordpress主题
  • 光泽网站建设wzjseo网站交换链接怎么做?
  • 怎样做网站的后台商务网站规划与设计实训报告
  • 给文字做网站链接网站为什么续费
  • 网站推广的内容wordpress ico不显示
  • 小轲网站建设wordpress调用站点标题
  • 郑州网站建设公司哪家专业好找人做网站注意什么问题
  • 用非(~)和与()表示亦或(^)
  • 郑州网站建设索q479185700济南网络公司哪家好
  • 性能测试+监控体系一站式搭建指南:从脚本设计到服务器资源全景监控
  • 网站还难做啊手机兼职软件
  • 网站后台程序如何做读书网站建设策划书
  • 如何使用二级域名做网站毛绒玩具东莞网站建设
  • PCIe协议之 PAM4 篇之格雷码应用,你真理解了吗?(二)
  • navigation2基础-lifecycle_node 的使用