原创 nc掃描端口

nc可以用來掃描端口,但是各個系統之間版本差別較大 centos7: nc 不支持-r,i.e. 無法掃描端口範圍。如果只測試一個端口可以用nc [root@baidu ~]# nc -4vzw 1 www.baidu.com 81 N

原创 pgadmin VerifyCA 認證方法

#環境 :postgresql-10 centos7 win7 pgadmin4 #pgadmin "SSL mode" 選擇 "Verify-CA" #生成私鑰server.key openssl genrsa -des3 -out s

原创 pgadmin VerifyFull 認證方法

#環境 :postgresql-10 centos7 win7 pgadmin4 #pgadmin "SSL mode" 選擇 "Verify-Full" #數據庫端文件生成 openssl genrsa -des3 -out serve

原创 macos selenium firefox chrome safari driver

要不edge就算了吧。。 macos 10.15.4 python 3.6.8 pip3 install selenium #安裝selenium 1、firefox 76.0.1     1.1、使用brew安裝geckodri

原创 flask session 使用 sqlalchemy postgresql 時的問題

Flask==1.1.1 Flask-Session==0.3.1 Flask-SQLAlchemy==2.4.1 postgresql==10.5 本文不討論session爲什麼使用postgresql而不是redis的問題,討論SES

原创 axios timeout response.config.retry獲取不到的問題

今天對axios做超時處理時,參考了其他同學文章https://imweb.io/topic/5b1505d1d4c96b9b1b4c4ead,發現設置後不生效。 經查 [email protected] 不能通過axios.defaults.*

原创 vue router 懶加載組件 訪問頁面時報錯問題

問題現象: 1、直接用url訪問三級子路由時報錯 Uncaught SyntaxError: Unexpected token '<' 2、在三級子路由頁面中點擊兄弟頁面時報錯: vue-router.esm.js?8c4f:16

原创 localhost不能訪問 127.0.0.1可以訪問 的一種解決方法

今天在調試本地服務的時候 發現訪問http://localhost:8080提示 “ERR_EMPTY_RESPONSE” 訪問http://127.0.0.1:8080 正常,這必須得折騰一下啊 查了一下,兩個地址的區別大概是127.0

原创 mac vscode 自定義模版

使用html5 模版時使用  ! + Tab 十分好用,美中不足需要每次重新修改lang,引入css、js。使用下面方法可以創建自己的模版 vscode - 左下角齒輪 - 【用戶代碼片段】,搜索“html.json”,在{}中輸入自己的

原创 mac vscode postgresql verify-full

mac vscode postgresql 插件 microsoft版,星最多那版折騰半天也沒搞定ssl 前提是本機可以使用ssl連接數據庫,連接過程不在此篇討論,可以參考 verify-full 的其他文章 開始, 進入vscode s

原创 pycharm .gitignore不生效

新建.gitignore後輸入多行發現不能生效,但是單行可以生效 發現是換行符問題,在linux中換行符被顯示爲^M 1、點擊.gitignore文件編輯區域; 2、通過更改 pycharm【file】-【Line Separators】

原创 pgadmin verify Full

  #pgadmin "SSL mode" 選擇 "Verify-Full" #數據庫端文件生成 openssl genrsa -des3 -out server.key 2048 openssl rsa -in server.key -

原创 centos7 安裝 python3 pip3不能使用問題

終於可以輸出一點經驗了。。 總結了其他人的經驗,經過自己嘗試成功了 分享給大家做參考 os: centos 7 #安裝gcc,否則在./configure時會erroryum install gcc#安裝openssl-devel