原创 Linux系統安裝MongoDB

環境 CentOS Linux release 7.6.1810 (Core) mongodb-linux-x86_64-4.0.17.tgz 下載頁面 https://www.mongodb.com/download-cente

原创 SpringBoot(SpringMVC)集成UMeditor

1、去官網下載umeditor放到nginx根目錄下 將umeditor的目錄命名爲umeditor 2、修改umeditor的配置文件umeditor.config.js # 修改前 // ,imageUrl:U

原创 Linux系統安裝MySQL5.7.28

環境 CentOS Linux release 7.6.1810 (Core) mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz 下載頁面 https://downloads.mysql.com

原创 P2V 使用VMware vCenter Converter 6.2進行物理機虛擬化

一、操作步驟 1、打開VMware vCenter Converter 6.2 選擇使用本機當做converter服務器 2、選擇Convert machine 3、選擇源系統, powered on:可以選擇遠程window

原创 CentOS7.7安裝教程

一、下載CentOS http://mirrors.aliyun.com/centos/7/isos/x86_64/ 二、安裝CentOS 1、創建新的虛擬機 2、選擇自定義 3、兼容性使用默認選項 4、選擇稍後安裝操作系統

原创 Nginx轉發請求後java獲取IP

1、Nginx增加配置 proxy_set_header Host $host; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-F

原创 SpringMVC的@RequestBody註解使用fastjson反序列化枚舉類型

1、使用mybatis-plus,指定枚舉類所在的的包 SpringBoot工程在 application.yml中增加 mybatis-plus: type-enums-package: com.xxx.xxx.model.

原创 Linux系統安裝JDK

1、查看linux是32位的還是64位的 getconf LONG_BIT 2、在Oracle官網下載對應的jdk,我用的是jdk-8u221-linux-x64.tar.gz 3、解壓 tar zxvf jdk-8u221-l

原创 Linux系統安裝nginx

1、下載nginx,並解壓 cd /usr/local/soft wget http://nginx.org/download/nginx-1.14.1.tar.gz tar xzf nginx-1.14.1.tar.gz 2、

原创 Nginx升級

linux下nginx升級 # 查看原程序的編譯參數 cd /usr/local/nginx ./sbin/nginx -V # configure arguments:後的參數就是編譯參數 cd /usr/local # 備份 m

原创 Nginx支持Websocket的配置

$ vim /usr/local/nginx/conf/nginx.conf # 在http上下文中增加如下配置,確保Nginx能處理正常http請求。 http{ map $http_upgrade $connection_upg

原创 集成WebSocket+SpringMVC+dubbo的過程中遇到的問題

集成WebSocket的過程中遇到的問題 項目中使用到了dubbo和SpringMVC,並且使用SpringSession管理session,但在集成WebSocket時遇到了一些問題: 1、無法獲取到登錄用戶 2、無法獲取到dubb