find /home/gitlab-runner/videofusionbe/api/logs/ -name ‘04-08.log’ -print
Sudo - gitlab-runner
sh rsbc.sh stop
sh rsbc.sh start
tail -f Web.log.2022-04-21.log
kill 12345
kill -9 123456
ps -ef | grep nginx
/usr/local/nginx/sbin/nginx -t
grep:global search regular expression(RE) and print out the line 全局正则匹配并输出】
netstat -anp
netstat -tunlp
netstat -tnlp | grep :80
firewall-cmd --zone=public --add-port=8099/tcp --permanent
从新启动
firewall-cmd --reload
systemctl status firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
netstat -tunlp|grep 8096
netstat -nplt
chown -R gitlab-runner:gitlab-runner /home/gitlab-runner/3
chown gitlab-runner:gitlab-runner api.jar
cp -r /home/packageA/* /home/cp/packageB/
cat /etc/redhat-release
cat /proc/version
#netstat -lntup
-bash: netstat: 未找到命令
yum install net-tools -y
#lscpu查看CPU信息,
#用free查看内存信息,
#用fdisk -l查看磁盘信息等
pwd
sudo yum install java-1.8.0-openjdk-devel.x86_64
#指定GBK GB18030编码也是可以的
unzip -O CP936 资料.zip
zip -q -r public.zip public
chmod u+x *.sh
345 chmod 777 linux命令行运行
346 ./linux命令行运行
347 nohup./linux命令行运行 &
348 nohup ./linux命令行运行 &
353 cp /home/vrMap/linux命令行运行 /etc/init.d/
355 chmod +x /etc/init.d/linux命令行运行
356 chkconfig --add linux命令行运行
cat -n startup.log |grep ‘1101’ -A 100
cat top 100 startup.log
route add -net 10.250.0.0 netmask 255.255.255.0 gw 192.168.255.254
route add -net 10.250.0.0/24 gw 192.168.255.254
route add -net 192.168.0.0/24 ens256
route add -net 191.168.1.0 netmask 255.255.255.0 gw 192.168.255.254
route del -net 0.0.0.0 # 删除默认目标
1./etc/sysconfig/network-scripts文件中路由固化的格式
① 添加默认路由
gw 10.92.2.1
或者
any net 0.0.0.0/0 gw 10.92.2.1
② 添加网络路由
255.0 gw 1.1.1.10
或者
any net 1.1.1.0/24 gw 1.1.1.10
最后需要重启网卡
route -n
systemctl restart NetworkManager
[curl --digest -u ‘admin:hik123456’ http://210.34.84.12/ISAPI/ContentMgmt/InputProxy/channels]