自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 运行pa.py错误总结

windows下查看python的版本、安装路径1、进入cmd命令2、查看python版本:输入python3、查看python安装路径:where python运行Python命令:python pa.py一,问题描述 使用python中编写中文字符时,会提示如下错误信息:SyntaxError: Non-ASCII characte...

2020-03-30 15:34:24 168

原创 安装MongoDB出现Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges

安装路径默认就可以了

2020-03-25 11:54:59 494

原创 Windows 平台安装 MongoDB

MongoDB 下载MongoDB 提供了可用于 32 位和 64 位系统的预编译二进制包,你可以从MongoDB官网下载安装,MongoDB 预编译二进制包下载地址:https://www.mongodb.com/download-center/community注意:在 MongoDB 2.2 版本后已经不再支持 Windows XP 系统。最新版本也已经没有了 32 位系统的安装文...

2020-03-24 08:54:25 101

原创 nohup后台运行jar与关闭

nohup后台运行jar与关闭开启:nohup java -jar motorcade.jar > nohup.out 2>&1 &nohup java -jar py-web.jar >log.txt &(实测)//关闭进程ps -aux | grep javakill -s 9 2420424204代表上一步...

2020-03-23 16:41:45 1910

转载 springboot+thymeleaf 跳转修改默认页面路径及相关配置

一般来说springboot默认静态资源就是resources-》static目录下,但是总有各种各样的原因,所以还是直接配置一下比较好。一般来说被thymeleaf修饰的页面一般是thymeleaf默认在resources-》templates目录下作为前缀,表示被thymeleaf修饰的页面在这里作为根目录。(注意:不是静态资源)但是还是希望大家能加上对应的配置,避免各种各样的尴尬...

2020-03-22 21:08:14 2136

原创 springboot打包命令mvn

然后使用命令 mvn clean package -Dmaven.test.skip=true 即可执行打包。<br><br>该命令的意思是“清理原来target的文件,然后打包时不执行、不打包test相关的资源和类”。...

2020-03-22 08:19:10 688

原创 nginx多项目配置

nginx按不同的目录分发给不同的项目:server {listen 80;server_name example.com;location ^~ /project1 {proxy_pass http://127.0.0.1:8081;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_head...

2020-03-22 07:50:21 143

原创 nginx.conf文件中的location的配置

一、location匹配规则:location匹配命令~ #波浪线表示执行一个正则匹配,区分大小写~* #表示执行一个正则匹配,不区分大小写^~ #^~表示普通字符匹配,如果该选项匹配,只匹配该选项,不匹配别的选项,一般用来匹配目录= #进行普通字符精确匹配@ #"@" 定义一个命名的 location,使用在内部定向时,例如error_p...

2020-03-21 21:41:26 1902

转载 nginx配置多个项目

使用Nginx要在同一个域名下配置多个项目有两种方式:nginx按不同的目录分发给不同的项目 启用二级域名,不同的项目分配不同的二级域名1.nginx按不同的目录分发给不同的项目:server {listen 80;server_name example.com;location ^~ /project1 {proxy_pass http://127.0.0.1:8081;p...

2020-03-21 21:25:36 671

原创 springboot用controller跳转html页面

第一、resourses下文件夹public是我自己创建的,通过local host:8080/index.html可以直接访问。第二、通过controller层访问templates中的文件夹:步骤一、application.properties 配置中添加spring.thymeleaf.prefix=classpath:/templates/步骤二、pom.xml文件中添加依赖:...

2020-03-20 22:15:00 1162 1

原创 jsoup爬虫报错javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException

在使用jsoup爬取某个https开头的网站时(使用了ssl证书的网站),结果出现以下错误:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBu...

2020-03-15 23:05:30 1458 2

原创 springboot项目 property文件转为yaml文件

springboot项目 property文件转为yaml文件:普通数据类型格式是key: value,注意冒号后是有空格的,yml格式中冒号后不能直接接value必须要有一个空格

2020-03-13 11:27:17 468

原创 springboot整合进Nginx

server { listen 80; server_name www.didiok.com; access_log logs/book.log; error_log logs/book.error; #将http://www.didiok.com/wx-service请求转发给http://127.0.0.1:8011/wx-servi...

2020-03-12 22:08:42 1300

原创 springboot项目部署到Nginx

Nginx.conf 配置代理vi /usr/nginx/conf/nginx.conf添加如下内容 /api/ 根据你自己的情况定,IP也是location /api/ { proxy_pass http://0.0.0.0:8080; }如上,会转发到http://0.0.0.0:8080/api/...

2020-03-12 21:30:17 8375

转载 nginx 报错 : [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead

最近在给网站配置https证书时发生这个错误,经过排查发现发现nginx提示ssl这个指令已经不建议使用,要使用listen ... ssl替代修改为

2020-03-12 11:20:52 85

原创 ecs 搭建nginx 一直报错make[1]: *** [objs/src/event/ngx_event_openssl.o] 错误 1

报错内容如下:src/event/ngx_event_openssl.c: 在函数‘ngx_ssl_init’中: src/event/ngx_event_openssl.c:112:5: 警告:不建议使用‘OPENSSL_config’(声明于 /usr/local/openssl-1.1.1-pre9/.openssl/include/openssl/conf.h:91) [-Wdep...

2020-03-12 10:25:51 11870 2

转载 nginx 启动、重启、关闭命令

一、启动cd /usr/local/nginx/sbin./nginx二、重启 更改配置重启nginxkill -HUP 主进程号或进程号文件路径 或者cd /usr/local/nginx/sbin./nginx -s reload 判断配置文件是否正确./nginx -t -c /usr/local/nginx/conf/nginx...

2020-03-11 21:08:21 99

转载 已经安装了openssl,但是执行 ./configure时还是一直报:./configure: error: SSL modules require the OpenSSL library.

安装openresty时,执行 ./configure时一直报:./configure: error: SSL modules require the OpenSSL library../configure: error: SSL modules require the OpenSSL library.You can either do not enable the modules,...

2020-03-11 19:45:02 12509

转载 解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No s

问题在Centos7上编译安装openssl后,运行openssl version出现如下错误:openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory这是由于openssl库的位置不正确造成的。解决...

2020-03-11 17:40:59 9424

原创 centos7 使用let's encrypt工具配置Nginx HTTPS

环境介绍Centos7 Nginx 1.9.9 openssl 1.0.2 certbot注意有些 let’s Encrypt 证书安装方法需要用到 python2.7 及以上,centos6 默认是 python2.6 版本,需要做相应升级。CentOS7 可以直接跳过。申请证书之前如果 80 或 443 端口被监听,例如 nginx 已经在使用,就必须把 nginx 停...

2020-03-08 21:44:05 1253 1

转载 阿里云Linux-CentOS安装并配置Nginx教程

以下操作基础目录为:/usr/local ,即下载和解压都放在该目录下。一、安装依赖首先由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有gcc、gcc-c++、openssl、pcre和zlib 所以执行如下命令安装。1.安装gcc gcc-c++依赖包yum install -y gcc gcc-c++2.下载编译...

2020-03-07 19:53:39 180

转载 linux进程后台运行方法nohup、setsid、&介绍

我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。nohup/setsid/&场景:如果只是临时有一个命令需要长时间运行,什么方法能最简便的保证它...

2020-03-05 21:33:12 209

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除