1.文件岔激,文件夾管理
cd (進(jìn)入路徑)
pwd(顯示路徑)
mkdir /。挪略。/(在某路徑創(chuàng)建文件夾)
rmdir (刪除文件夾)
tree (顯示路徑樹)
cp 文件名 路徑(復(fù)制文件到相應(yīng)路徑)
查看后臺(tái)日志:
/var/log/xdata_ingest/xdata_ingest.2019-05-13-0.log (dip)
/usr/local/data_ingest/nifi-1.9.0/logs(nifi)
tail -100f nifi-app.log
head(前十行)
cat(查看全部)
more()
less()
ps -ef|grep vsftpd
ps -ef|grep nifi
ps -ef|grep datain
ps -a
進(jìn)程查看命令 -e顯示所有進(jìn)程 -f全格式 grep查找
ls -lrt 按時(shí)間排序
啟停服務(wù)
systemctl status|start|restart|stop firewalld.service(dip)
給文件賦權(quán)限
chmod -R 777 /home/zhangsht/
-r遞歸處理波材,給所有用戶賦權(quán)酿愧,777所有權(quán)限
kubectl get pods --all-namespaces -o wide
kubectl exec -it -n [NAMESPACE] [NAME] bash
kubectl get pods --all-namespaces -o wide
kubectl describe pods -n edu edu-web-7dbd5cc9f4-zc7fl
namespace name
uname -a 顯示系統(tǒng)信息
reboot 重啟
top 顯示進(jìn)程信息
free -m 查看內(nèi)存游岳,以m為單位
scp root@10.6.6.123:/data/releases/EDU_V3.3_b3* . 使用ssh傳文件到本地 . 就是本地當(dāng)前文件夾
scp local_file remote_username@remote_ip:remote_folder 從本地到遠(yuǎn)程
ssh root@10.6.6.123 ssh連接
ansible-playbook -i ./hosts -l10.6.6.49,10.6.6.80 -e operation=deploy updateKernel.yml
ansible -i hosts 10.6.6.49,10.6.6.80 -a"reboot"
ansible -i hosts 10.6.6.49,10.6.6.80 -a"uname -a"
ansible -i hosts all -a"uname -a"
ansible -i hosts all -a"systemctl status firewalld"
ansible -i hosts all -a"sestatus"
ansible-playbook -i ./hosts -e operation=deploy install.yml
ssh連接節(jié)點(diǎn)
dockers ps | grep name keywords
dockers stats 容器號(hào)
netstat -tuanlp | grep 8000