项目地址https://github.com/jlyo/tcping安装git clone https://github.com/jlyo/tcping.gitcd tcpingmake install使用tcping -p 端口 服务器地址tcping -p 端口 服务器地址 -c ping次数tcping -p 端口 服务器地址 -i 间隔(秒)加时间脚本cat tcping.sh
#!/bin/bash
while true;&n...
1、查看当前#最大值
[shnne@localhost ~]$ cat /proc/sys/net/core/rmem_max
212992
[shnne@localhost ~]$ cat /proc/sys/net/core/wmem_max
212992
#初始值
[shnne@localhost ~]$ cat /proc/sys/net/core/rmem_de...
nginx的error日志出现2024/11/01 06:28:03 [error] 17113#0: *823738 upstream sent too big header while reading response header from upstream, client:解决办法,在nginx.conf里对应...
CentOS 6
cd /etc/cron.daily
grep '10d' tmpwatch
sed -i 's#10d#30d#g' tmpwatch
cat tmpwatch
CentOS 7
grep '10d' /usr/lib/tmpfiles.d/tmp.conf ...
在 Python 开发中,pip 是用于安装和管理 Python 包的工具。有时候,我们可能需要从文件中批量安装 Python 包,或者安装特定版本的包。这种情况下,我们可以使用 pip 的相关命令来完成。使用 requirements.txt 文件安装模块requirements.txt 是一个文本文件,其中列出了要安装的 Python 包的名称和版本号。我们可以使用 pip 的 -r 参数和 requirements.txt 文件来...
# 安装编译工具和依赖
yum install gcc make zlib-devel
# 下载 OpenSSL 源代码
cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.2k.tar.gz
tar -zxvf openssl-1.0.2k.tar.g...
strings /lib64/libc.so.6 |grep GLIBC
mkdir -p /soft/glibc-2.15/build
cd /soft/glibc-2.15/
wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz
tar xzvf glibc-2.15.tar.gz
cd /soft/glibc-2...
1、配置环境安装一些基础环境yum install -y curl policycoreutils-python openssh-server cronie添加源curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash安装 GitLab CE 版本,运行命令就可以开始自动部署 yum install -y gitlab-ce(主线...
如访问如下三个域名,得到不同的内容,一般用作验证使用http://a.shnne.com/CHECK.txthttp://b.shnne.com/CHECK.txthttp://c.shnne.com/CHECK.txt可以通过nginx配置,不需要新建站点获取在http模块里添加map $host $content {default "404";a.shnne.com "内容a";b.shnne.com "内容b"...
Starting MySQL.. ERROR! The server quit without updating PID file (/data/mysql/data/localhost.pid).MYSQL优化的参数,改了innodb_log_file_size参后,启动下面报错,然来是改了这个参数后需要关闭MYSQLSQL删除ib_logfile0, ib_logfile1这些文件,再启动MYSQL。...