Linux默認(rèn)策略泄伪,把沒有使用的內(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.門戶
/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ò),就是防火墻問題蛉幸。
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)站沒問題就是DNS問題
[root@oldboyedu /opt]# cat /etc/resolv.conf?
# Generated by NetworkManager
nameserver 223.5.5.5
ping 10.0.0.254
* * *
?3 ?* * *
?4 ?* * *
?5 ?* * *
?6 ?* * *
?7 ?* * *
?8 ?* * *
?9 ?* * *
10 ?* * *
11 ?* * *
女生富養(yǎng),男生窮養(yǎng)奕纫。
磁盤體系:
1.磁盤維護(hù)
2.掛載
3.文件系統(tǒng)
4.分區(qū)
5.raid知識(shí)體系
6.內(nèi)外部結(jié)構(gòu)提陶、讀寫原理
命令使用:
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL 查raid級(jí)別
#/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 【顯示適配器個(gè)數(shù)】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 【顯示適配器時(shí)間】
#/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è)計(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)的變化隙笆,從拔盤,到插盤的過程中升筏。
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三次握手四次揮手。
注意:中斷連接端可以是Client端您访,也可以是Server端乏冀。
假設(shè)Client端發(fā)起中斷連接請(qǐng)求,也就是發(fā)送FIN報(bào)文洋只。Server端接到FIN報(bào)文后辆沦,意思是說"我Client端沒有數(shù)據(jù)要發(fā)給你了",但是如果你還有數(shù)據(jù)沒有發(fā)送完成识虚,則不必急著關(guān)閉Socket肢扯,可以繼續(xù)發(fā)送數(shù)據(jù)。所以你先發(fā)送ACK担锤,"告訴Client端蔚晨,你的請(qǐng)求我收到了,但是我還沒準(zhǔn)備好,請(qǐng)繼續(xù)你等我的消息"铭腕。這個(gè)時(shí)候Client端就進(jìn)入FIN_WAIT狀態(tài)银择,繼續(xù)等待Server端的FIN報(bào)文。當(dāng)Server端確定數(shù)據(jù)已發(fā)送完成累舷,則向Client端發(fā)送FIN報(bào)文浩考,"告訴Client端,好了被盈,我這邊數(shù)據(jù)發(fā)完了析孽,準(zhǔn)備好關(guān)閉連接了"。Client端收到FIN報(bào)文后只怎,"就知道可以關(guān)閉連接了袜瞬,但是他還是不相信網(wǎng)絡(luò),怕Server端不知道要關(guān)閉身堡,所以發(fā)送ACK后進(jìn)入TIME_WAIT狀態(tài)邓尤,如果Server端沒有收到ACK則可以重傳√眩“汞扎,Server端收到ACK后,"就知道可以斷開連接了"赴精。Client端等待了2MSL后依然沒有收到回復(fù),則證明Server端已正常關(guān)閉绞幌,那好蕾哟,我Client端也可以關(guān)閉連接了。Ok莲蜘,TCP連接就這樣關(guān)閉了谭确!
手把手帶你快速做【最專業(yè)】的項(xiàng)目文檔實(shí)戰(zhàn)
http://edu.51cto.com/course/course_id-4992.html
手把手帶你快速畫【最專業(yè)】的邏輯架構(gòu)圖實(shí)戰(zhàn)
http://edu.51cto.com/course/course_id-4991.html