Myluzh Blog

CentOS7 部署本地YUM仓库

2024-5-31 myluzh Linux

0x01 概述 环境准备: CentOS7_A:YUM-SERVER,用来部署本地yum仓库。 ip:172.16.10.78 CentOS7_A:用来测试搭建YUM仓库是否生效。 ip:172.16.10.79 0x02 YUM-SERVER部署web服务 在yum-server机子上搭建一个web服务,开启目录索引 # 写入nginx repo cat <<EOF > nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/\$r...

阅读全文>>

标签: centos yum rpm repo centos7 reposync createrepo

评论(0) (283)

Linux云主机安装GPU驱动(NVIDIA)

2024-5-8 myluzh Linux

一、centos系统 0x01 查看显卡 [root@ecs-50372952-3-1 ~]# lspci | grep -i nvidia 00:06.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:07.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:08.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:09.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:0a.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:0b.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:0c.0 3D controller: NVIDIA Corporation Device 20f1 (rev a1) 00:0d....

阅读全文>>

标签: centos ubuntu gpu ecs nvidia tesla a100

评论(0) (475)

Linux安装tcping

2023-11-20 myluzh Linux

0x01 安装tcping curl -k https://dl.itho.cn/bash/tcping -o /usr/bin/tcping chmod +x /usr/bin/tcping 如果用不了需要安装下依赖 # CentOS yum install -y tcptraceroute bc # Debian/Ubuntu apt-get install -y tcptraceroute bc 0x02 手动安装tcping vim /usr/bin/tcping chmod +x /usr/bin/tcping #!/bin/sh # # tcpping: test response times using TCP SYN packets # URL: http://www.vdberg.org/~richard/tcpping.html # uses tcptraceroute from http://michael.toren.net/code/tcptraceroute/ # (c) 2002-2005 Richard van den Berg <richard@vdberg.org> un...

阅读全文>>

标签: centos tcping

评论(0) (292)

CentOS安装nginx

2023-6-1 myluzh Nginx

0x01 通过rpm包离线安装 rpm包地址:https://nginx.org/packages/centos/7/x86_64/RPMS/ wget https://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.24.0-1.el7.ngx.x86_64.rpm rpm -i nginx-1.24.0-1.el7.ngx.x86_64.rpm 0x02 创建nginx仓库文件 vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=...

阅读全文>>

标签: centos nginx

评论(0) (334)

CentOS9部署Zabbix6详细过程

2023-5-9 myluzh Zabbix

0x01 前置条件 1.确定系统版本 Zabbix 6.0要求CentOS≧8,MySQL≧8.0或MariaDB≧10.5.0 Zabbix 6.2及之后版本增加要求PHP≧7.4 2.确定防火墙状态或者放通端口 systemctl status firewalld#查看防火墙状态 systemctl stop firewalld#关闭防火墙 systemctl disable firewalld#永久关闭 0x02 部署过程 1.配置zabbix官方源 # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-6.0-4.el9.noarch.rpm # dnf clean all 2.安装zabbix服务 # dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent 3.部署MariaDB Ser...

阅读全文>>

标签: centos zabbix centos9

评论(0) (365)

CentOS7搭建OpenVPN Server

2023-2-2 myluzh OpenVPN

0x01 安装OpenVPN #临时关闭selinux setenforce 0 #添加epel yum源 wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo yum clean yum makecache #yum安装包 yum install openvpn -y 0x02 证书制作 # 下载安装easy-rsa wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.1.2/EasyRSA-3.1.2.tgz tar xf EasyRSA-3.1.2.tgz mkdir -p /etc/openvpn/easy-rsa3 cp -r EasyRSA-3.1.2/* /etc/openvpn/easy-rsa3 # 进入easy-rsa3目录 cd /etc/openvpn/easy-rsa3/ #初始化目录 ./easyrsa init-pki # 复制vars文件模板 cp /etc/open...

阅读全文>>

标签: centos openvpn easy-rsa

评论(0) (445)