原创 codec can‘t encode character ‘\\xa0‘ in position 123: illegal multibyte sequence

出現這種一般是編碼問題導致的,首先我將寫入文件的編碼方式更改爲utf-8,問題解決了,不過寫入文件之後,有變成了亂碼。經過查找資料將編碼方式更改爲**gb18030**問題解決。

原创 ubuntu 18.04以超級管理員權限運行vscode

sudo code --user-data-dir ="~/.vscode-root"

原创 ubuntu18.04下安裝配置mysql5.7

notes:root權限下執行 首選sudo su 進入root權限下 # 查看有沒有安裝MySQL: dpkg -l | grep mysql # 安裝MySQL: apt install mysql-server 安裝完

原创 centos防火牆命令

查看防火牆的狀態的命令爲: sudo systemctl status firewalld 打開防火牆的方式有兩種,一種是打開後重啓會恢復回原來的狀態,命令爲: sudo systemctl start firewalld 另一

原创 Not all processes could be identified, non-owned process info will not be show解決辦法

Not all processes could be identified, non-owned process info will not be show解決辦法 背景 今天在調試腳本的時候,打印出的日誌中出現了 “Not al