1.常規(guī)分區(qū)
/boot? 1024M
swap? 內(nèi)存1.5倍?? 大于8G給8G
/ 所有
================================
/home
/var
/usr
2.存儲 數(shù)據(jù)庫 備份
/boot? 1024M
swap? 內(nèi)存1.5倍?? 大于8G給8G
/ 100-200G
/data 所有 放數(shù)據(jù)
3.門戶
/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)行撵枢。
?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
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ù)
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端口別錯颂斜,就是防火墻問題她混。
4.xshell連接
c6:/etc/init.d/sshd restart
?? service sshd restart
c7:systemctl restart sshd
概念:
ifconfig 別名IP
?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. 如何測試服務(wù)器能否連上互聯(lián)網(wǎng)?
ping www.oldboyedu.com
ping 203.81.19.1 通的 但是ping www.oldboyedu.com不通径密。
如果網(wǎng)站沒問題就是DNS問題
磁盤體系:
1.磁盤維護(hù)
2.掛載
3.文件系統(tǒng)
4.分區(qū)
5.raid知識體系
6.內(nèi)外部結(jié)構(gòu)钾恢、讀寫原理
命令使用:
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL 查raid級別
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL 查raid卡信息
#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看硬盤信息
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll 查看電池信息
#/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL 查看raid卡日志
#/opt/MegaRAID/MegaCli/MegaCli64 -adpCount 【顯示適配器個數(shù)】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 【顯示適配器時間】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll 【顯示所有適配器信息】
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll 【顯示所有邏輯磁盤組信息】
#/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è)計參數(shù)】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL 【顯示當(dāng)前BBU屬性】
#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL 【顯示Raid卡型號解幽,Raid設(shè)置廷粒,Disk相關(guān)信息】
3.磁帶狀態(tài)的變化窘拯,從拔盤红且,到插盤的過程中。
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online
4.查看磁盤緩存策略
#/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -L0 -a0
https://www.cnblogs.com/lianzhilei/p/6472038.html
網(wǎng)絡(luò)部分:
1涤姊、tcp三次握手四次揮手暇番。
2、11種狀態(tài)
3思喊、tcpdump/wireshark/route
4壁酬、不能上網(wǎng)如何排查。