原创 JMeter 安裝、漢化

下載JMeter源碼包 下載地址   解壓後設置環境變量   修改jmeter配置,顯示爲中文界面 進入bin目錄找到jmeter.properties 修改 language=zh_CN   cmd 命令行啓動 jmeter,可以看到

原创 liunx 判斷進程、文件、文件夾是否存在;文件是否爲空

  #判斷進程是否存在 #!/bin/sh proceCopys = ps -fe|grep copys.sh |grep -v grep #echo $proceCopys if [ $proceCopys -ne 0 ] then

原创 MESSAGE: Native table 'performance_schema'.'session_variables' has the wrong structure

--從mysql5.7.6開始information_schema.global_status已經開始被捨棄,爲了兼容性,此時需要打開 show_compatibility_56 2)character_set_database , c

原创 Kubernetes Ingress

Ingress-Nginx github 地址:https://github.com/kubernetes/ingress-nginx Ingress-Nginx 官方網站:https://kubernetes.github.io/in

原创 mysql 備份(crontab )

  方法一,mysql導出 #!/bin/bash # 刪除14天之前的數據備份文件 find /data/crm -mtime +14 -name '*.sql.gz' -exec rm -fr '{}' \; # 當前時間變量 D

原创 docker gitlab 搭建

1)創建 docker-compose.yml 內容: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'git.xxxx.com' env

原创 Mysql 使用truncate 清空一個庫所有表結構

  select CONCAT('truncate TABLE ',table_schema,'.',TABLE_NAME, ';') from INFORMATION_SCHEMA.TABLES where table_schema

原创 docker Error response from daemon: client version 1.40 is too new. Maximum supported API version is

vim /etc/profile # 添加 export DOCKER_API_VERSION=1.39 source /etc/profile  

原创 springboot 日誌配置文件 logback-spring.xml

logback-spring.xml 配置 <?xml version="1.0" encoding="UTF-8"?> <configuration> <contextName>jm-logs</contextName>

原创 開源網站搭建

1)https://hub.docker.com/r/bitnami/moodle/ $ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-mood