原创 nginx location 匹配規則

location 匹配優先級 = / > = /login > ^~ /static/ > ~ .(gif|jpg|png|js|css)> ∗\.png > / = 精確匹配 ~ 區分大小寫匹配 ~* 不區分大小寫匹配 ^ 正則

原创 每天一個命令(8) pwd (print name of current/working directory)

pwd print name of current/working directory 打印當前目錄或者名字 root@web01 ~ # cd /home/tools/ apache-tomcat-7.0.69/ apac

原创 每天一個命令(18)hostname

hostname 獲取本機名字/設置本機名字 hostname root@nginx02 /application/ngx_openresty/nginx/conf/extra # hostname nginx02 hostname n

原创 每天一命令(9)echo (display a line of text)

echo (display a line of text) man echo 查看命令文檔 -n do not output the trailing newline 輸出不換行 -e enable interpret

原创 每天一命令(15)df - report file system disk space usage

df - report file system disk space usage 導出文件系統磁盤使用情況 man df 查看命令文檔 df -ah -a 包含全部的文件系統 -h 可讀性較高的方式來顯示信息 案例

原创 每日一命令(12)head (output the first part of files)

head (output the first part of files) man head 命令查看 head -[ncqv] file -n 顯示的行數 默認是前10行 -c 每次輸出的字節數 -v 輸

原创 linux lua (1) 安裝

* 第一步下載lua* root@nginx02 /home/tools # wget http://www.lua.org/ftp/lua-5.3.3.tar.gz 第二步安裝依賴包 安裝報錯就是沒有安裝依賴包 lua.c:337:

原创 每日一命令(11)ln - make links between files

ln - make links between files man ln 創建軟鏈接和硬鏈接,相當於window裏面的快捷方式 ln命令會保持每一處鏈接文件的同步性,也就是說,不論你改動了哪一處,其它的文件都會發生相同的變化;第二,l

原创 每日一命令(13)free - (Display amount of free and used memory in the system)

free - (Display amount of free and used memory in the system) man free 查看命令文檔 free 參數 -bkmgs -b 字節顯示