linux centos 查看内存使用情况
1、ps -ef|grep java (查看所有java運(yùn)行的進(jìn)程)
2、df -h (查看磁盤使用情況)
3、free -m|g (m和g表示單位,二選一)查看內(nèi)存使用情況
4、top (實(shí)時(shí)顯示系統(tǒng)中各個(gè)進(jìn)程的資源占用狀況)
5、 top -d 1 -p pid (pid 進(jìn)程id) 查看單個(gè)進(jìn)程占用資源狀況
contos7 上模糊查找某個(gè)文件的在哪
find / -name *. filename.xml
如?find / -name *.test.xml
redis:
????????systemctl start redis.service #啟動(dòng)redis服務(wù)?
systemctl enable redis.service #設(shè)置開機(jī)自啟動(dòng)?
systemctl disable redis.service #停止開機(jī)自啟動(dòng)?
systemctl status redis.service #查看服務(wù)當(dāng)前狀態(tài)?
systemctl restart redis.service ?#重新啟動(dòng)服務(wù)?
systemctl list-units --type=service #查看所有已啟動(dòng)的服務(wù)?
后續(xù)有其他新指令繼續(xù)補(bǔ)上....
在此做個(gè)記錄!
總結(jié)
以上是生活随笔為你收集整理的linux centos 查看内存使用情况的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: c语言输出字母abcd,有字母ABCD,
- 下一篇: DMIPS, TOPS, FLOPS,