2015年3月8日 星期日

FreeBSD 10 與先前版本主要差異



FreeBSD 10 與先前版本主要差異
  • clang 取代 GCC 成為預設編譯器
  • Unbound 已被導取代 base 系統作為本機 DNS 解析服務。
  • BIND 已從 base 系統移除,改用Unbound取代。
  • 使用來自 NetBSD 專案的 bmake 替換了 make。
  • pkg 成預設的套件管理工具。
  • pkgadd、pkgdelete 及其相關工具已被移除
  • 對虛擬化進行了主要增強,內建支援BIS(Built in – BIS are included as part of this ,FreeBSD 9及8的版本需自行額外加裝BIS, Linux 則稱為LIS) 。
  • 針對 SSD 的 TRIM 支援已被加入到 ZFS
  • 效能更高的LZ4 壓縮演算法已被加入到 ZFS

Hyper-v對FreeBSD的支援
 
FreeBSD virtual machines on Hyper-V


CentOS and Red Hat Enterprise Linux virtual machines on Hyper-V

https://technet.microsoft.com/zh-tw/library/dn531026.aspx

2015年2月22日 星期日

PHP Warning: date(): It is not safe to rely on the system's timezone settings.

在排程執行cacti時,出現下列錯誤訊息
when last update time is 1424519091 (minimum one second step)
PHP Warning:  date(): It is not safe to rely on the
 system's timezone settings. You are *required*
 to use the date.timezone setting or the 
date_default_timezone_set() function. In case you 
used any of those methods and you are still getting
 this warning, you most likely misspelled the 
timezone identifier. We selected the timezone 'UTC' 
now, but please set date.timezone to select your 
timezone. in /usr/share/cacti/lib/functions.php on line 486

解決方式
 修正/etc/php.ini
 在data.timezone 後方加入"Asia/Taipei"
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Taipei"

2014年12月31日 星期三

FreeBSD 更換IPv6設定及透過ifconfig移除舊有IPv6位址

在FreeBSD上更改IPv6 IP,在不重新啟動系統的狀態下,會產生更改IPv6設定後,舊有的IPv6位址還留在系統上

例如:

原本IPv6 為::6 要改為::4

做法
1.修改/etc/rc.conf設定
2.透過# /etc/netstart restart 重新載入IP設定(不重開機的做法)
3.執行下列指令會看到舊的IPv6位址 ::6
#ifconfig | grep inet6

        inet6 fe80::226:55ff:fe7d:20b4%bce0 prefixlen 64 scopeid 0x1
        inet6 2001:288:7288:1::6 prefixlen 64
        inet6 2001:288:7288:1::4 prefixlen 64
 4.透過 下列指令刪除舊有的IPv6位址
  #ifconfig bce0 inet6 2001:288:7288:1::6/64 delete

2014年11月16日 星期日

Firefox 常用外掛程式

Adblock 阻擋廣告工具
FireGustures 滑鼠手勢
Super Drag 拖拽瀏覽
DragIT 不建議用這套,該軟體也有手勢功能,會與FireGustures衝突(不是當掉)
Google Translator for Firefox 翻譯工具

2014年11月8日 星期六

CentOS 7 初始化設定

yum localinstall --nogpgcheck http://mirrors.yun-idc.com/epel/7/x86_64/e/epel # yum localinstall --nogpgcheck http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm # yum clean all # yum update

2014年8月6日 星期三

清除本機DNS暫存(DNS cache)

在做網域名稱除錯時,有時明明已在經DNS主機上修改了網域名稱對應的記錄,但在自己的電腦瀏覽網域或網址,還是連線到舊的IP位址. 通常會發生樣的狀況,大都是使用者指定的DNS主機上的解析資料都還是舊的,未到達網域權威主機設定的TTL到期時間,因此除時間到, 否則該DNS主機並不會再重新去詢該網域的權威主機取得最近的網域對應記錄,另一個問題可能是本機的DNS Cache也有可能造成,清除 本機的DNS Cache方式如下:

 Windows :
c:\> ipconfig /flushdns

 Linux Ubuntu:
  /etc/init.d/nscd restart