分类: GNU/Linux

140 篇文章

CentOS 7 部署NFS文件共享存储服务
NFS 简介 NFS(Network File System)网络文件系统,最大的功能就是可以通过网络,让不同的机器不同的操作系统可以共享彼此的文件。简单理解就是可以挂载远程主机的共享目录到本地,如操作本地磁盘,非常方便的操作远程文件。 部署环境 NFS服务端IP:192.168.0.204/24 NFS客户端IP:192.168.0.205/24…
RHEL 8.2 最小化环境部署Python3.9
安装依赖 [root@zabbix-server packages]# dnf install libffi-devel wget tar gcc* -y 下载 [root@zabbix-server packages]# wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0b3.tar…
RHEL 8.2 部署Jenkins
部署 deployer@rhel8:~$ sudo dnf install java-1.8.0-openjdk-devel #安装OpenJDK deployer@rhel8:~$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/…
CentOS 7 LVM分区硬盘扩容
现有基于KVM的数据库服务器系统盘40G,因需要新增40G数据盘进行分区扩容调整。 [root@SRV205 ~]# df -h #扩容前 Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos_srv205-root 34G 3.8G 31G 11% / devtmpfs 1.9…
RHEL 8.2 CPU性能测试工具 – sysbench
deployer@rhel8:~$ sudo dnf install -y sysbench deployer@rhel8:~$ sysbench --test=cpu --num-threads=4 run deployer@rhel8:~$ sudo sysbench --test=cpu --num-threads=4 run WARNING…
个人自用.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively…
RHEL 8.2 TIME_WAIT过多解决办法
短时间内大量连接被建立并断开,都会导致TIME_WAIT状态的端口过多从而造成可用端口变少,可以对内核参数进行优化: 修改sysctl.conf文件 [deployer@rhel8 ~]# sudo vi /etc/sysctl.conf sysctl -w net.ipv4.tcp_timestamps=1 开启对于TCP时间戳的支持,若设置为0…
RHEL 8.2 配置笔记本合盖不休眠
配置文件 目录为:/etc/systemd/logind.conf [root@rhel8-study ~]# vim /etc/systemd/logind.conf HandlePowerKey 按下电源键后的行为,默认power off HandleSleepKey 按下挂起键后的行为,默认suspend #可暂停目前正在执行的shell。若…