原创 Go語言示例 --15運行ubuntu終端shell命令

1. Go運行shell命令 cmd.go實現了ubuntu終端"whoami"命令的查詢。 package main import ( "os/exec" "fmt" ) func main(){ va

原创 ubuntu獲取本機外網ip

ubuntu獲取本機外網IP命令 $ curl http://members.3322.org/dyndns/getip

原创 ubuntu關閉端口命令

關閉端口 sudo fuser -k 8080/tcp

原创 Windows10和 Ubuntu16.04 LTS通過samba共享文件夾

昨天,2019年06月03號,系裏派技術人員說要升級系統到Windows10。爲什麼?因爲電腦雖多次嘗試卻未能成功安裝一個Windows7系統安全更新包。 我也就勉勉強強同意升級了。爲什麼?一方面是Windows7將於2020年1

原创 ubuntu查看/殺死進程命令

1. 查詢所有用戶的進程 $ ps -ef 2. 篩選相關進程 篩選zookeeper相關進程, ps -ef|grep zookeeper 顯示如下, t716 417835 383959 0 17:35 pt

原创 Ubuntu下查看系統內核,系統發行版本

查看系統內核,node1 $ uname -a Linux host01 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x

原创 Ubuntu下查看CPU處理器參數

查看CPU處理器模型 node 1 $ cat /proc/cpuinfo | grep 'name'| uniq model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 查看

原创 SCP通過外網IP/端口進行文件傳輸

Ubuntu下通過外網IP/端口進行文件傳輸的命令如下, scp -P 9003 source_directory/your_file [email protected]*.***.***:destination_direc

原创 Latex自定義序號

Latex 自定義序號,命令如下, \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=(\alph*)]

原创 Nodejs異步編程之Promises chaining

1. 案例一 1.1. 案例描述 resolve()函數的輸入參數:無 用戶函數函數的返回值:無 函數書寫形式:完整 Promise: ×1 chain: ×1 1.2. 源代碼 “case1.js” let promise =

原创 Google Scholar英文寫作工具使用

1. Google Scholar 1.1. 通配符wildcard 檢索例句:單個通配符表示單個單詞 "in this paper we * the" 檢索結果 檢索例句:多個通配符表示多個單詞 "in this paper

原创 Ubuntu下查看網卡接口的參數配置

查看網卡接口eth4的參數配置 node1 $ cat /sys/class/net/eth0/speed 1000 查看網卡接口eth0的參數配置 node2 $ cat /sys/class/net/eth0/speed 1

原创 Ubuntu下查看memory內存參數

查看memory內存參數 node1,按‘q’鍵退出命令 $ sudo dmidecode --type memory | less # dmidecode 3.0 Getting SMBIOS data from sysfs.

原创 "curl": cannot locate symbol "curl_mime_free"問題的解決方案

1. 問題描述 curl出現問題““curl”: cannot locate symbol “curl_mime_free””。 curl: symbol lookup error: curl: undefined symbol:

原创 Docker刪除包含特定字符串的Containers 和/或 Images

1. 刪除包含特定字符串的Containers 舉例:刪除返回結果中包含 “demo” 字樣的Containers,且不影響其餘Containers。 ~$ docker rm $(docker ps -a | grep 'dem