Monthly Archives: December 2019

更新git

CentOS 7自帶的git 版本是1.8.3,如果要更新可以從source build https://github.com/git/git/releases make configure ./configure –prefix=/usr/localmakemake install 安裝完會裝至 /usr/bin/local, 但是如果直接打git –version發現還是舊版的,檢查一下env PATH 看起來搜索路徑是先從 /usr/local/bin沒錯 會發生這個原因主要是 bash cache了git路徑,避免每次使用都要重新在PATH搜索,此時只要rehash就好 另外需注意build環境若沒有curl dev files,build完git會無法使用https

Posted in System Administration | Leave a comment

CentOS 7 disable IPv6

nmtui工具可以設定是否要啟用ipv6,但是關掉後發現dmesg還是一直出現router advertisement failed to add default router的訊息,代表網卡的ipv6還是有在運作(發送router solicitation) 查看 /etc/sysconfig/network-scripts  下網卡的設定 IPV6INIT=no 但是透過 ip addr show dev enp1s0 還是可以看到ipv6的設定 參考上面說明: It is not helpful to add IPV6INIT=no parameter to interfaces that need to disable IPv6. Link local ipv6 can still be seen … Continue reading

Posted in System Administration | Leave a comment