顯示具有 Mac OS 標籤的文章。 顯示所有文章
顯示具有 Mac OS 標籤的文章。 顯示所有文章

2017年12月21日 星期四

How to flush DNS cache in Linux / Windows / Mac

Flush dns to get a new name resolution. Also flush dns cache when you can’t access a newly registered domain name. You can simply flush your dns cache anytime to get new entry. So, Flush your dns cache now.

To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000):
– Start -> Run -> type cmd
 – in command prompt, type ipconfig /flushdns
 – Done! You Window DNS cache has just been flush.

To flush the DNS cache in Linux, restart the nscd daemon:
 – To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
 – Once you run the command your linux DNS cache will flush.

To flush the DNS cache in Mac OS X Leopard:
– type lookupd -flushcache in your terminal to flush the DNS resolver cache.
 ex: bash-2.05a$ lookupd -flushcache
 – Once you run the command your DNS cache (in Mac OS X) will flush.

To flush the DNS cache in Mac OS X:-

– type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
 ex: bash-2.05a$ dscacheutil -flushcache
 – Once you run the command your DNS cache (in Mac OS X Leopard) will flush.


2017年12月5日 星期二

SSH Connect to AWS Linux Instance from MacOS


by MacOS Terminal Client

$ssh -i "**********AWSkeypair.pem" user@hostname.compute.amazonaws.com



by ssh client lite

1. Launch Preference -> Security
2. Import PEM file

3. Connection Setting
Name:
Host:
Port:
Select Private Key:


2017年11月11日 星期六

Mac OS Python version and pip install


Check system default python version

$python --version


Install pip and check pip version

$sudo easy_install pip



$pip --version





Docker Command

#1 pull images $docker pull chusiang/takaojs1607 #2 list images $docker images #3.1 run docker $docker run -it ### bash #3.2 run do...