課堂筆記day30

老男孩Linux運(yùn)維58期課堂筆記(復(fù)習(xí))

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 作者:于冬

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 歸檔:課堂筆記

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 日期:4.11

Linux默認(rèn)策略,把沒(méi)有使用的內(nèi)存,都會(huì)作為緩沖區(qū)或者緩存區(qū)。

1.常規(guī)分區(qū)

/boot? 1024M

swap? 內(nèi)存1.5倍? 大于8G給8G

/ 所有


/home

/var

/usr

2.存儲(chǔ) 數(shù)據(jù)庫(kù) 備份

/boot? 1024M

swap? 內(nèi)存1.5倍? 大于8G給8G

/ 100-200G

/data 所有 放數(shù)據(jù)

3.門(mén)戶

/boot? 1024M

swap? 內(nèi)存1.5倍? 大于8G給8G

/ 100-200G

剩下保留。

xshell,secureCRT,putty,ssh

SSH默認(rèn)22端口

0.VM虛擬網(wǎng)絡(luò)編輯器設(shè)置

1、服務(wù)端運(yùn)行。

[root@oldboyedu /opt]# netstat -lntup|grep ssh

tcp? ? ? ? 0? ? ? 0 0.0.0.0:22? ? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 6899/sshd? ? ?

tcp6? ? ? 0? ? ? 0 :::22? ? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 6899/ssh

[root@oldboyedu /opt]# systemctl status sshd

sshd.service - OpenSSH server daemon

Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)

Active: active (running) since Wed 2020-10-28 21:09:17 CST; 1 years 6 months left

?Docs: man:sshd(8)

2.客戶端ping

ping 10.0.0.201

3.客戶端檢查服務(wù)

[c:\~]$ telnet 10.0.0.201 22

Connecting to 10.0.0.201:22...

Connection established.

To escape to local shell, press 'Ctrl+Alt+]'.

SSH-2.0-OpenSSH_7.4

IP端口別錯(cuò),就是防火墻問(wèn)題。

4.xshell連接

c6:/etc/init.d/sshd restart

? service sshd restart

c7:systemctl restart sshd

概念:

ifconfig 別名IP

[root@oldboyedu /opt]# ifconfig? eth0:0 10.0.0.202/24 up

增加網(wǎng)卡文件/etc/sysconfig/network-scripts/ifcfg-eth0:0

ip? ? ? 輔助IP

ip addr add 10.0.0.203/24 dev eth0 label eth0:1

7. 如何測(cè)試服務(wù)器能否連上互聯(lián)網(wǎng)?

ping www.oldboyedu.com

ping 203.81.19.1 通的 但是ping www.oldboyedu.com不通。

如果網(wǎng)站沒(méi)問(wèn)題就是DNS問(wèn)題

[root@oldboyedu /opt]# cat /etc/resolv.conf

# Generated by NetworkManager

nameserver 223.5.5.5

ping 10.0.0.254

磁盤(pán)體系:

1.磁盤(pán)維護(hù)

2.掛載

3.文件系統(tǒng)

4.分區(qū)

5.raid知識(shí)體系

6.內(nèi)外部結(jié)構(gòu)、讀寫(xiě)原理

命令使用:

#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL 查raid級(jí)別

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL 查raid卡信息

#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看硬盤(pán)信息

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll 查看電池信息

#/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL 查看raid卡日志

#/opt/MegaRAID/MegaCli/MegaCli64 -adpCount 【顯示適配器個(gè)數(shù)】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 【顯示適配器時(shí)間】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll 【顯示所有適配器信息】

#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll 【顯示所有邏輯磁盤(pán)組信息】

#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll 【顯示所有的物理信息】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’ 【查看充電狀態(tài)】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL【顯示BBU狀態(tài)信息】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL【顯示BBU容量信息】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL 【顯示BBU設(shè)計(jì)參數(shù)】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL 【顯示當(dāng)前BBU屬性】

#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL 【顯示Raid卡型號(hào),Raid設(shè)置,Disk相關(guān)信息】

3.磁帶狀態(tài)的變化,從拔盤(pán),到插盤(pán)的過(guò)程中。

Device |Normal|Damage|Rebuild|Normal

Virtual Drive |Optimal|Degraded|Degraded|Optimal

Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 思想 考試題難點(diǎn) 復(fù)習(xí) 1.常規(guī)分區(qū) /boot 1024M swap 內(nèi)存1.5倍 大于8G給8G / 所有 ...
    喂00閱讀 171評(píng)論 0 0
  • 回顧與復(fù)習(xí) Linux默認(rèn)策略,把沒(méi)有使用的內(nèi)存,都會(huì)作為緩沖區(qū)或者緩存區(qū)。 1.常規(guī)分區(qū)/boot 1024M...
    Aza_Lxxx閱讀 238評(píng)論 0 0
  • Day30 |作者:方維超 歸檔:課堂筆記 時(shí)間:2019/4/11 老男孩教育教學(xué)核心思想6重:重目標(biāo)、重思路、...
    Ffvc閱讀 595評(píng)論 0 0
  • - 我是個(gè)“網(wǎng)癮少女”,所以我在網(wǎng)上看到的故事、信息比同齡人要多的多。 因?yàn)槲摇皝?lái)者不拒”,所以看到故事里面既有男...
    DIPPER星閱讀 230評(píng)論 0 1
  • 0921 day5 書(shū)籍名:《靠譜:頂尖咨詢師教你的工作基本功》 字?jǐn)?shù): 784字 1.《休息是有成本的》 大石在...
    蘋(píng)果Apple來(lái)了閱讀 189評(píng)論 0 0

友情鏈接更多精彩內(nèi)容