摘要:
在jenkins服务器上配置好了ssh登录远程服务器,并且传输更新jar包后,执行服务器上的重启jar包脚本restart.sh失败,jar包未被启动 打开restart.sh vim restart.sh #!/bin/bash . /home/apps/.bash_profile 在开始添加ss
阅读全文
posted @ 2024-02-19 16:35
sky_cheng
阅读(69)
推荐(0)
编辑
摘要:
一、安装telnet作为备份连接用 yum install telnet-server telnet xinetd 二、启动telnet服务 systemctl start telnet.socket systemctl start xinetd systemctl status telnet.so
阅读全文
posted @ 2024-02-01 09:26
sky_cheng
阅读(61)
推荐(0)
编辑
摘要:
已设置好了ssh免密登录的id_rsa.pub到目标主机下的authorized_keys文件中,但是ssh登录始终提示输入密码 排查:检查用户家目录属性:750 drwxr-x 11 hlim hl95 290 3月 1 14:39 hlim 检查用户目录下的.ssh目录的属性,必须为700,检查
阅读全文
posted @ 2024-01-29 10:37
sky_cheng
阅读(8)
推荐(0)
编辑
摘要:
1、dig [root@hlcc_master mysqlinit]# dig www.baidu.com ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.13 <<>> www.baidu.com ;; global options: +cmd ;;
阅读全文
posted @ 2023-12-22 11:35
sky_cheng
阅读(24)
推荐(0)
编辑
摘要:
1、查看指定时间范围,模糊匹配目录以及文件名的所有文件的大小并排序 find /home/hlcc/tendis-cluster-*/node-*/dump/* -size +2M -mtime +1 -type f -name "binlog*.log" | xargs ls -lh --sort
阅读全文
posted @ 2023-12-22 09:42
sky_cheng
阅读(7)
推荐(0)
编辑
摘要:
curl -vvv --include --no-buffer \ --header "Connection: Upgrade" \ --header "Upgrade: websocket" \ --header "Host: transcribestreaming.us-east-1.amazo
阅读全文
posted @ 2023-11-20 17:13
sky_cheng
阅读(587)
推荐(0)
编辑
摘要:
一、查询是否安装了指定rpm包 rpm -qa|grep opensips 二、查看已安装的rpm包的安装文件信息 rpm -ql opensips 三、查看未安装的某个rpm包的安装文件信息 rpm -qpl opensips-3.4.1-1.2.20231009.T.el7.x86_64.rpm
阅读全文
posted @ 2023-10-13 16:38
sky_cheng
阅读(8)
推荐(0)
编辑
摘要:
一、iptables命令 查看当前iptables的nat表内的规则 -t nat指定看nat表,不用-t默认为filter表 -L 列出表内所有规则,可以指定特定链 -n 使输出中的IP地址和端口以数值的形式显示 -v 输出详细化 --line 显示出每条规则在相应链中的序号 [root@loca
阅读全文
posted @ 2023-09-14 11:45
sky_cheng
阅读(2106)
推荐(1)
编辑
摘要:
一、NETWORK 网络 bind 127.0.0.1 #绑定的 IP protected-mode no #保护模式 port 6379 #端口设置 二、GENERAL 通用 daemonize yes # 以守护进程的方式运行,默认是 no ,我们需要自己开启为 yes pidfile /var
阅读全文
posted @ 2023-09-12 08:55
sky_cheng
阅读(16)
推荐(0)
编辑
摘要:
将公网IP端口转发内网IP端口 iptables -t nat -A PREROUTING -d 192.168.124.247 -p tcp --destination-port 32200 -i eth0 -j DNAT --to-destination 172.16.1.2:22
阅读全文
posted @ 2023-09-01 11:03
sky_cheng
阅读(5)
推荐(0)
编辑