幾種常見的分區(qū)方式
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默認22端口
0.VM虛擬網(wǎng)絡編輯器設置
1葱绒、服務端運行泛领。
[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.客戶端檢查服務
[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端口別錯幽邓,就是防火墻問題。
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
- 如何測試服務器能否連上互聯(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 * * *
磁盤體系:
1.磁盤維護
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ù)】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL 【顯示當前BBU屬性】
#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL 【顯示Raid卡型號,Raid設置八千,Disk相關信息】
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