導航:首頁 > 配伺服器 > linux查看當前伺服器ip地址命令

linux查看當前伺服器ip地址命令

發布時間:2023-12-25 04:44:33

linux系統中怎麼查ip地址

1、進入Linux系統,如果是進入的KDE、Gnome等桌面,在桌面右擊打開終端。在終端里輸入ifconfig -a命令按回車鍵執行即可查看IP地址,如果是進入的字元界面,直接執行ifconfig -a 命令即可。

Ⅱ linux怎麼查看ip地址

linux怎麼查看ip地址塵兄談?我們一起來了解一下吧。

1、打開塵知linux伺服器,然後在桌面的空白處點擊右鍵。

2、在彈出的下拉選項里,點擊打開終端。

3、輸入查詢linux的ip地址的命令:ifconfig-a,然後回車。

4、使用查看linux的ip地址命令後,就會在終派碰端命令窗口裡顯示出ip地址。

本文章基於ThinkpadE15品牌、centos7系統撰寫的。

Ⅲ 如何查看「linux伺服器」IP和埠

參考方法:

1、用netstat查看:

Ⅳ linux如何查看本機ip地址

1.修改/etc/profile文件,注釋掉if語句即團衫可
把下面的if語句注釋掉:
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
修改為
# Path manipulation
# if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
#fi
2.可以使用ln 命令連接悄或亮
下圖是操作詳細過程
[Blinux@bogon ~]$ ifconfigbash: ifconfig: command not found

[Blinux@bogon ~]$ ln -s /sbin/ifconfig /bin/ifconfigln: 正在創建指向「/sbin/ifconfig」的符號鏈接「/bin/ifconfig」: 許可權啟寬不夠
[Blinux@bogon ~]$ su
口令:
[root@bogon Blinux]# ln -s /sbin/ifconfig /bin/ifconfig[root@bogon Blinux]# su Blinux[Blinux@bogon ~]$ ifconfigeth0 Link encap:Ethernet HWaddr 00:0C:29:D4:AD:D6
inet addr:192.168.13.132 Bcast:192.168.13.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed4:add6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:254 errors:0 dropped:0 overruns:0 frame:0
TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28648 (27.9 KiB) TX bytes:20650 (20.1 KiB)
Interrupt:67 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2471 errors:0 dropped:0 overruns:0 frame:0
TX packets:2471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4570048 (4.3 MiB) TX bytes:4570048 (4.3 MiB)

3.用su – root方法
[Blinux@bogon ~]$ ifconfig
bash: ifconfig: command not found
[Blinux@bogon ~]$ su - root
口令:
[root@bogon ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:D4:AD:D6
inet addr:192.168.13.132 Bcast:192.168.13.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed4:add6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:292 errors:0 dropped:0 overruns:0 frame:0
TX packets:228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32842 (32.0 KiB) TX bytes:24487 (23.9 KiB)
Interrupt:67 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2471 errors:0 dropped:0 overruns:0 frame:0
TX packets:2471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4570048 (4.3 MiB) TX bytes:4570048 (4.3 MiB)

閱讀全文

與linux查看當前伺服器ip地址命令相關的資料

熱點內容
c語言編譯器手機在線 瀏覽:848
戰艦世界什麼伺服器地址 瀏覽:550
windowsphone解壓縮 瀏覽:646
android工程目錄結構 瀏覽:137
pdf文檔是反的 瀏覽:528
javaobject比較 瀏覽:867
安卓如何設置微信屏幕鎖 瀏覽:189
本溪雲伺服器 瀏覽:375
玩機技巧華為app如何了解純凈模式 瀏覽:905
換演算法則數不變 瀏覽:719
java工作流activiti 瀏覽:788
單片機自動門程序 瀏覽:423
java培訓長沙 瀏覽:494
程序員生存現狀 瀏覽:588
光環游戲安裝器在哪個文件夾 瀏覽:654
公眾號圖片被壓縮 瀏覽:291
github優秀java 瀏覽:594
高壓縮視頻播放器 瀏覽:413
linux檢測apache 瀏覽:742
運行命令ur 瀏覽:939