tldsn
4/2/2020 - 3:42 AM

#命令

#命令

(beego打包为linux环境)
bee pack -be GOOS=linux


(vue打包)
npm run build


(go程序打包为linux环境)
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64

go build main.go



(linux后台启动)
nohup ./manager &



(linux——查端口号)
netstat -apn |grep 8888
netstat -tlnp
ps -ef |grep "name"
kill -9


(windows——查端口号)
netstat -aon|findstr "8080"
taskkill /pid 8108 /t /f



(音频转换mp3=>wav)
ffmpeg -y  -i a.mp3  -acodec pcm_s16le -f s16le -ac 1 -ar 16000 a.pcm
ffmpeg -y  -i a.mp3  -acodec pcm_s16le -f wav -ac 1 -ar 16000 a.wav


(linux grep命令)
-w  完整匹配
-m  限制条数
-i  不区分大小写
grep '123|abc' filename
grep pattern1 files | grep pattern2
grep '2018-11-02/23:5[1-6]' filename  时间


(cmd常用命令)
cd
cd..
dir
mstsc
cls