原创 TLS 1.0 enabled 漏洞
lighttpd服務使用Acunetix漏掃 TLS 1.0 enabled Severity Medium Reported by module /Scripts/PerServer/SSL_Audit.script Descriptio
原创 編譯make 4.2.1
下載源碼 https://mirrors.tuna.tsinghua.edu.cn/gnu/make/make-4.2.1.tar.gz 編譯並安裝 tar xzvf make-4.2.1.tar.gz cd make-4.2.1 ./co
原创 編譯gcc 8.4.0
首先下載gcc 8.4.0源碼: https://mirrors.sjtug.sjtu.edu.cn/gnu/gcc/gcc-8.4.0/gcc-8.4.0.tar.gz 解壓並編譯 tar xzvf gcc-8.4.0.tar.gz c
原创 Centos7 strongswan configure.ac PKG_CHECK_VAR
在configure.ac前邊添加以下內容: # backwards compat with older pkg-config # - pull in AC_DEFUN from pkg.m4 m4_ifndef([PKG_CHECK_V
原创 ubuntu server設置
一、root用戶支持ssh # 修改/etc/ssh/sshd_config配置文件1 #PermitRootLogin prohibit-password 2 PermitRootLogin yes 二、修改用戶名密碼 # sudo
原创 centos 8 rc.local不生效的問題
具體可以操作紅帽的官方文檔(英文):https://www.jianshu.com/p/96a2075ad784 使rc.local生效的操作如下: chmod a+x /etc/rc.d/rc.local systemctl
原创 linux 以太網命名規則
參考: https://blog.csdn.net/maomao5945/article/details/79354204 https://www.cnblogs.com/bfhyqy/p/1351224
原创 終端窗口意外退出 - screen
參考: https://www.runoob.com/linux/linux-comm-screen.html
原创 timedatectl set-Timezone Access
# timedatectl set-timezone America/Tijuana Failed to set time zone: Access denied 看一下/etc/: # ls /etc -ald drwxr-xr-x 1
原创 strongswan INIT
在strongswan中有一個INIT宏,實現方式如下: // Object allocation/initialization macro, using designated initializer.#define INIT(this,
原创 內核模塊加載失敗,[ 3918.858233] xxx: disagrees about version of symbol module_layout
問題描述 在linux系統中加載模塊時,insmod xxx.ko,報以下錯誤: insmod: ERROR: could not insert module xxx.ko: Invalid module format dmesg信息中提示
原创 centos修改時區-shanghai
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
原创 const 關鍵字修飾指針
const在C中修飾指針 比如: const char *a = "a"; char * const b = "b"; const char * const c = "c"; const在類型前,修飾的是內容;在變量名前,修飾的是指向。 例
原创 gdb指定源碼路徑
· 當我們在設備上使用源碼編譯程序後,在另一臺設備上應用並gdb調試時,這時會提示找不到源碼文件。 · 這是因爲在另一臺設備中沒有源碼文件,即使有源碼文件,如果路徑和在編譯時的路徑一致的情況下也是不行的。 · 此時我們只需將源碼拷貝到另一臺
原创 linux - 要學習的工具
vim + cscope vim + ctags