原创 在安裝完成mysql5.7 之後,發現密碼不知道。直接重置密碼。

在安裝完成mysql5.7 之後,發現密碼不知道。直接重置密碼。 (1)修改配置文件my.cfg [root@localhost ~]# vi /etc/my.cnf 找到mysqld在之後添加 skip-grant-table

原创 linux-aarch64上安裝Python3報錯ImportError: No module named _ssl

安裝Python3.7時報錯ImportError: No module named _ssl 解決方法: (1)需要先添加以以下依賴 (2)在/usr/local/python3/Python-3.7.0/Modules找到S

原创 中標麒麟下安裝python

1、安裝所需依賴zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-deve

原创 在mysql中建表插入數據

create table test1( id int primary key auto_increment, name varchar(50), gender char(1), age int, birth datetime);

原创 Springboot中打包後無法讀取resources下的文件

1、文件a.txt在resources下,路徑如下圖所示。 2、採用ResourceUtils讀取方式,開發運行時正常,但打maven包後,無法再讀取。 File file = ResourceUtils.getFile("cl

原创 虛擬機橋接模式無法ping通主機

VMWare虛擬機橋接模式無法ping通主機,經排查需要做如下操作: 1、用管理員身份打開虛擬機 2、點擊編輯–>虛擬網絡編輯器—>選中橋接模式—>選擇正確的以太網網卡 3、選擇虛擬機–>設置—>網絡適配器—>網絡連接選擇橋接模

原创 docker簡單使用(三)

sudo docker run hello-world //鏡像保存 docker save -o nginx.tar nginx:latest //鏡像導入 docker load -i /usr/local/softw

原创 通過源碼安裝docker

Install static binaries Download the static binary archive. Go to https://download.docker.com/linux/static/stable/

原创 Springboot+slf4+logback的日誌應用

1、定義logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <!--springProperty用來引用application.proper

原创 Ruby基本命令(一)

gem install -l compass-1.0.3.gem gem list --local gem uninstall cocoapods gem sources -l gem sources --add ht

原创 CentOS上如何源碼編譯nginx

一、安裝庫文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 二、安裝pcre-8.35 1、pcre-8.35下載地址 h

原创 postgre基本用法(一)

1、啓動postgre service postgresql start 2、#以postgres用戶登錄 su - postgres psql \l 查看當前的數據庫列表 \d 當前數據庫下的所有表 \q 退出 3、#以

原创 Docker簡單使用(四)

docer restart gitlab kill -9 docker進程 docker run --detach --publish 9444:443 --publish 8090:80 --publish 23:22 --

原创 linux上源碼安裝git

1、下載 https://mirrors.edge.kernel.org/pub/software/scm/git/ git安裝包 git-2.19.0.tar.gz,上傳至linux服務器 2、解壓 tar -zxvf git-

原创 安裝zlib-1.1.0.gem時報undefied method invoke_with_build_args for nil:NilClass

安裝gem install -l zlib-1.1.0.gem 時報以下錯誤: ERROR: Loading command: install (LoadError) cannot load such file