- 博客(8)
- 资源 (6)
- 收藏
- 关注
原创 【Nginx代理后端接口,并允许跨域】
2.然后设置proxy pass 代理到后端接口地址,注意http://168.61.11.187:8000地址后面添加"/",nginx会把接口的后续路径拼接上去,从而实现接口请求转发。由于前端访问后端服务接口会报错跨域,于是通过nginx用作接口代理,设置允许跨域,最终通过访问nginx代理,请求到了后端接口数据,废话少说,直接上代码。1.前端页面访问8074端口的接口地址,匹配到location后,设置header允许跨域。
2022-12-08 15:01:40
6592
3
原创 Linux使用inotify+unison实现数据、静态资源双向(多向)实时同步
Linux使用inotify+unison实现数据双向(多向)实时同步在特定的情况下需要在多个Linux服务器上做指定文件文件夹的实时同步,一个服务器修改了文件其它服务器的文件能保持一致.本博客非常适用于需要在两台、多台linux服务器做静态资源同步的同学,整个过程简单、实用,另外 inotify + unison稳定可靠。环境准备Centos服务器1:139.199.152.84Centos服务器2:111.230.103.208指定同步的文件夹:/usr/Tomcat/image与/usr/T
2021-07-14 16:46:36
846
原创 CentOS7的docker启动失败问题Job for docker.service failed because the control process exited with
CentOS7的docker下载下来启动失败问题(Job for docker.service failed because the control process exited with)的解决方案解决方案centos7 安装完docker启动时会出现的错误:Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and
2021-06-10 15:11:02
526
原创 Linux文件与目录777、755、644权限解释
Linux 文件和目录的权限1 文件权限在 Linux系统中, 文件或目录的权限可以分为 3 种:r:4 读r:2 写x:1 执行(运行)-:对应数值 0数字 4 、2 和 1 表示读、写、执行权限rwx = 4 + 2 + 1 = 7 (可读写运行)rw = 4 + 2 = 6 (可读写不可运行)rx = 4 +1 = 5 (可读可运行不可写)示例:最高权限 777:(4+2+1) (4+2+1) (4+2+1)第一个 7: 表示当前文件的拥有者的权限, 7=4+2+1 可读可
2021-01-27 13:54:28
577
原创 idea出现cannot download sources解决办法
idea出现cannot download sources解决办法有时候idea会出现cannot download sources的情况,如下图现在给大家整理两种解决方案:1.在IDEA中打开terminal,输入如下命令mvn dependency:resolve -Dclassifier=sources成功后,然后我们点击choose sources,选中要导入的sources包,点击ok,再重新点击download sources,就可以看到源码了。2.而所有的pom.xml不在同一个
2021-01-26 14:13:46
2007
原创 linux如何安装nginx(傻瓜式教程,按照命令执行即可)
#以home下安装为例,切换到home目录下cd 到home文件夹nginx相关依赖yum -y install make gcc gcc-c++ openssl openssl-devel pcre-devel zlib-devel下载Nginxwget -c http://nginx.org/download/nginx-1.14.2.tar.gz解压Nginxtar -zxvf nginx-1.14.2.tar.gz部署Nginxcd nginx-1.14.2./configure
2020-11-05 16:39:02
160
原创 本地新的项目如何托管到GitHub中
一.操作步骤1.cd到项目目录2.git init 加载git3.git add .4.git commit -m “提交内容”5.git remote add origin 要上传的github地址(这里确定已经在GitHub上新建了一个项目,新建之后就会在clone下有其相应地址)6.git pull —rebase origin master7.git push -u origin master二.如果报错1.建立本地分支与远程分支的联系git branch --set-upstr
2020-08-20 12:32:31
136
GeoLite2-city.mmdb
2022-12-15
jdk8-windows-x64.zip
2021-01-27
apache-apollo
2020-12-24
GeoLite2-mmdb.zip (IP地址库)
2020-04-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人