很久之前,在CentOS7版本發行的時候,我就知道這個狀況
當時我所使用到的linux環境,仍以ubuntu為主
完全沒有企業伺服器架設的需求(其實ubuntu比較是我常拿來架設企業伺服器的distribution)
當然,該面對的還是要面對,該學的一個也逃不掉
CentOS7 與先前版本指令的差異,我會用到的地方,做了一些整理
ifconfig 指令不見了
取而代之的是
ip addr
service xxx status
service xxx start
service xxx stop
變成
systemctl status xxx
systemctl start xxx
systemctl stop xxx
列出全部服務
systemctl list-unit-files
列出可用的運作層級
systemctl list-units –type target
顯示目前系統預設運作層級
systemctl get-default
切換運作層級至文字模式 runlevel 3
systemctl isolate multi-user.target
設定開機啟動至文字模式 runlevel 3
systemctl set-default multi-user.target
netstat 改成 ss
#TCP listen
ss -lt
#UDP listen
ss -ul
#TCP 連線
ss -t
traceroute/traceroute6 改用 tracepath
route 改用 ip -route
arp 改用 ip nei 網路中的arp
# ip neighbor
6. 介面開關
# ifconfig eth1 up
# ifconfig eth1 down
改為
# ip l set eth1 up
# ip l set eth1 down
學到新指命,強迫重抓dhcp
dhclient -v
隨機文章
- 亞卓市不再提供免費edu.tw信箱 (2011-01-30)
- MikroTik RouterOS 測試當Router 這樣的速度 不行啊 (2018-11-10)
- 這兩年的威聯通NAS真的是狀況不斷 我的建議是…… (2021-09-19)
- IE9一開啟就出現錯誤訊息解決方法 (2011-10-11)
- OS-Windows Mobile (2007-11-03)