自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 linux 创建用户并限制其访问目录

1、创建用户及访问目录 useradd username-d /mnt/storage2/design_draft -M 2、设置密码 passwd username 3、创建组(如已有组则跳过) groupadd groupname 4、给用户设置组 usermod -aG groupname username 5、将上层目录设置为root所有 chown root /mnt/storage2 6、赋予权限给上层目录 chmod 771 /mnt/storage2 7

2022-03-16 20:24:02 2558

原创 docker-compose 部署prometheus + grafana

mkdir -p /mnt/storage/prom/{prometheus,prometheus/data,alertmanager,grafana} chmod 777 /mnt/storage/prom/{prometheus/data,grafana} cd /mnt/storage/prom Prometheus vim /mnt/storage/prom/prometheus/alert-rules.yml groups: - name: node-alert r.

2022-02-11 18:53:31 838

原创 Prometheus 配置监控其他Linux主机

node_exporter安装配置 # 运行用户添加 groupadd prometheus useradd -g prometheus -m -d /usr/local/node_exporter/ -s /sbin/nologin prometheus # 下载node_serverwget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar

2022-02-11 18:45:08 1142

原创 php-fpm开启status监控

1.php-fpm.ini增加配置 pm.status_path = /4bc020cd40b51db16c85e685b86da43b 2.nginx增加本地配置 { listen 3380; server_name 127.0.0.1; index index.html index.htm index.php; error_page 404 /404.html; location ~ /(4bc020cd40b51db16c85e685b

2021-11-17 13:58:00 2053

转载 docker php 扩展安装合集

在安装SuiteCRM的过程中遇到了 没有zip扩展功能的问题,经过一番折腾,找到了这个文章,在此转发分享,希望对其他人有所帮助。 1.先进入myphp容器,看一下php目前安装了哪些扩展: $ docker exec -it myphp /bin/bash root@myphp:/# php -m [PHP Modules] Core 、ctype、curl、date、dom、fileinfo、filter、ftp、hash、iconv、json、libxml、mbstring、mysqli、mys

2021-10-22 15:59:31 1120

原创 SSH 免密登录

以下用两台centos为例,分别对应别名master、slave 1、首先在每个机器上执行(生成之前看下~/.ssh 是否存在,存在就不用生成) ssh-keygen -t rsa 下面说到的是两种方法:scp和ssh-copy-id,可根据需要自行选择 2.1、SCP 原理:将两个个机器上id_rsa.pub的内容合并起来放在authorized_keys,可以用命令按下面的步骤来 2.1.1、在master上执行 将master的authorized_keys传到slave上的.ss.

2021-10-22 11:12:38 267

原创 Centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等

iptables防火墙 基本操作命令 查看防火墙状态 service iptables status 停止防火墙 service iptables stop 启动防火墙 service iptables start 重启防火墙 service iptables restart 永久关闭防火墙 chkconfig iptables off 永久关闭后重启 chkconfig iptables on 端口(以80为例) vim /etc/sysconfig/iptables 加入

2021-10-20 10:45:22 595

转载 客户端请求数据较大时,nginx返回数据被截断

【问题描述】:客户端使用curl命令向nginx请求数据,当返回数据量较大时,数据被截断,客户端无法获取完整的数据。 【问题原因】:nginx配置文件中包含了proxy_buffer_size、proxy_buffers两个配置字段,其中proxy_buffer_size用来接收后端服务器response的第一部分,proxy_buffers用来设置读取被代理服务器的缓冲区数目和大小,如果proxy_buffers关闭,nginx不会等到所有后端数据都被获取到之后才返回,而是尽快将接收到的数据传给客户端,

2021-10-20 10:42:38 5461 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除