centos7 centos linux nginx
ldap sssd授权linux登录
业务系统越来越多,服务器也越来越多,本文主要是给企业用户减少账号密码管理难度的。 目的:使用ldap统一管理账号密码,实现单点登录linux。 一点废话,网上找了很多文章,看得云里雾里,搞了几天算是搞明白了一点,记录一下,希望有人能用得上。 小白文,接触过一点linux的都可以尝试一下 环境准备 l ......
"nginx.conf" E514 : write error (file system full?)
出现这段提示,可以先看看磁盘空间是不是满了 不看不知道,一看吓一跳,什么时候我的业务这么丰富了 下面开始查看哪个位置占用空间了 查看各目录大小 du -h --max-depth=1 / 再次确认详细的地方 du -h --max-depth=1 /home 这里就确认了具体的位置 这个时候先删除m ......
centos7.9内核升级至6.1.12-1
载入公钥rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 升级安装ELReporpm -Uvh https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm 载入elre ......
YAML示例:nginx使用configmap配置并开启镜像
# use nginx to be a proxy, mirror each request to other services, 10.96.2.58 send back the reponse to user client. m1 and m2 just mirror the request, ......
centos8配置网络环境及阿里云网络yum源
一、centos8配置网络环境 1.修改配置网卡配置文件 [root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens18 TYPE=Ethernet NAME=ens18 DEVICE=ens18 IPADDR=192.168.1 ......
centos 编译安装 curl
centos 编译安装 curl 下载地址 解压后进入目录 执行: ./configure --prefix=/usr/local/curl --with-openssl make && make clean # 配置环境变量 echo 'export CURL_HOME=/usr/local/cu ......
Linux安装chrome浏览器
1.下载安装包 [root@xiaobing chrome]# wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm --2024-01-12 15:25:47-- https://dl.goo ......
Cisco Secure Client 5.1.1.42 (macOS, Linux, Windows & iOS, Andrord) - 思科安全客户端下载
Cisco Secure Client 5.1.1.42 (macOS, Linux, Windows & iOS, Andrord) - 思科安全客户端下载 思科安全客户端(包括 AnyConnect) 请访问原文链接:https://sysin.org/blog/cisco-secure-cli ......
linux使用tar进行解压缩文件
压缩 tar -cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpg tar -czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz tar -cjf ......
linux 查看lv占用哪个pv
lvdisplay -m LV [root@lvm ~]# lvdisplay -m /dev/datavg/gfslv Logical volume LV Path /dev/datavg/gfslv LV Name gfslv VG Name datavg LV UUID 7RTU9u-t5X9 ......
CentOS7 mysql5.7 (rpm安装)
一 查看linux操作系统版本和系统内核版本 [root@nfs_client ~]# cat /etc/redhat-release 查看操作系统版本 CentOS Linux release 7.5.1804 (Core) [root@nfs_client ~]# uname -r 查看系统内核 ......
CentOS7上配置MySQL5.7主从备份
CentOS7,MySQL5.7 两台机器,master为192.168.226.130,slave为192.168.226.131 配置主MySQL 首先,登录MySQL,创建一个同步账号,用于从服务器访问主服务器 create user 'repl'@'%' identified by '密码' ......
CentOS7安装MySQL5.7.36 rpm
1.下载 MySQL 所需要的安装包 网址:https://dev.mysql.com/downloads/mysql/ 2.Select Operating System: 选择 Red Hat ,CentOS 是基于红帽的,Select OS Version: 选择 linux 7 3.选择 R ......
linux每天定时备份数据库并删除十天前数据详细步骤
每天定时备份数据库需要用到Linux的定时任务,利用Linux的crondtab 命令。下面通过本文给大家带来了linux每天定时备份数据库并删除十天前数据详细步骤,感兴趣的朋友一起看看吧 每天定时备份数据库需要用到Linux的定时任务,利用Linux的crondtab 命令。下面我们来看详细步骤: ......
Linux换系统盘后引导修复
早期系统装在SSD盘上,现由于磁盘IO性能问题需要将SSD盘用作于业务。 而SSD通常容量不是很大,所以需要将操作系统挪走,系统迁移可以参考基于lvm的系统盘在线迁移 需要修改的地方为 /etc/fstab /boot/efi/EFI/centos/grub.cfg uefi引导菜单 注:此次操作可 ......
Centos6与Centos7防火墙设置与端口开放的方法
centos7的firewall命令: 添加80端口 firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效) 重新载入 firewall-cmd --reload 查看 firewal ......
centos7 初始化mysql8,设置不区分大小写
centos7 初始化mysql8,设置不区分大小写 # centos7 初始化mysql8,设置不区分大小写 [root@monsters ~]# cd /etc [root@monsters etc]# vi my.cnf # 修改my.cnf lower_case_table_names=1 ......
nginx反向代理时报no resolver defined to resolve
错误日志 2024/01/11 05:29:22 [error] 29#29: *44 no resolver defined to resolve www.test.com, client: 127.0.0.1, server: _, request: "GET /test/123 HTTP/1. ......
Linux Shell接收键盘输入
1.read命令格式 read [选项] [变量名] 选项: -p “提示信息”:在等待read输入时,输出提示信息 -t “秒数”: read命令会一致等待用户输入,使用此选项可以指定等待时间 -n “字符数”: read命令只接受指定的字符数,就会执行 -s: 隐藏输入的数据,适用于机密信息的输 ......
linux服务器webdriver启动Chrome浏览器失败
碰到一个linux启动Chrome浏览器失败的奇怪问题,查了很久资料,问题终于解决了,特此记录一下 我的情况是,一开始运维给了一个deploy的账号去部署项目UI自动化测试项目,项目是运行没有问题的,后边运维说要回收掉原有的deploy账号,给了一个dev的账号,结果项目就运行不起来了,报错也知识提 ......
深入剖析 Linux Cgroups 子系统:资源精细管理
本章主要演示以下 cgroups 下各个 subsystem 的作用。 根据难易程度,依次演示了 pids 、cpu 和 memory 3 个 subsystem 的使用。 注:本文所有操作在 Ubuntu20.04 下进行。 如果你对云原生技术充满好奇,想要深入了解更多相关的文章和资讯,欢迎关注微 ......
Nginx长连接学习之二
Nginx长连接学习之二 背景 距离最开始学习Nginx的长连接已经一年半; 距离最开始学习Linux的TCP内核参数也已经过去了一年. 最近产品再次出现了TCP链接相关的问题. 因为一开始不知道部署模式已经变更, 我先排除了内存参数的问题. 结果很打脸, 还是内核参数问题导致的, 但是可能比较隐晦 ......
[linux kernel] struct pid && the way the kernel used to cast uint32_t pid to struct task_struct
摘抄内容引用自linux kernel document description pre the initialization and the manage of the struct pid is use IDR.(implement by hash table->(why not array?- ......
k8s 1.26.3 部署(containerd+centos 7.9)
一.系统环境初始化,所有节点都要做 服务器清单 10.12.121.190 k8s-01-master 10.12.121.191 k8s-01-node 根据实际更改初始化化hosts解析以及hostname,改完以后直接分别在master,node节点上执行执行 #配置服务器时间保持一致 yum ......
linux环境下配置maven
下载地址 #maven环境配置(已经配置好jdk) vim /etc/profile export MAVEN_HOME=/mnt/maven/apache-maven-3.6.3 export PATH=${MAVEN_HOME}/bin:${PATH} #使配置生效 source /etc/pr ......
linux 下关于路由表的理解
先看一个实例 Destination Gateway Genmask Flags Metric Ref Use Iface default 204.13.154.1 0.0.0.0 UG 0 0 0 eth0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker ......
程序打印进度条, linux c
函数如下: #include <stdio.h> #include <string.h> #include <unistd.h> typedef struct _progress { int cur_size; int sum_size; }progress_t; void progress_bar ......
YAML示例:创建单幅本nginx容器到指定节点及其service
# one rc deployment, schedule it to the node that has a label "ip" equals to "172.18.8.241" apiVersion: apps/v1 kind: Deployment metadata: name: 241-d ......
linux 扩展根目录分区
[root]~# fdisk /dev/mmcblk0 The number of cylinders for this disk is set to 60672.There is nothing wrong with that, but this is larger than 1024,and c ......