Myluzh Blog

Strive to become a dream architect.

Linux云主机安装GPU驱动(NVIDIA)- A100显卡

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) (99)

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) (164)

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) (183)

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) (233)

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) (280)

CentOS静态网卡配置

2023-1-18 myluzh Linux

一般位于 /etc/sysconfig/network-scripts/ifcfg-eth0 或类似的文件中。 静态 TYPE=Ethernet BOOTPROTO=none NAME=eth0 DEVICE=eth0 ONBOOT=yes IPADDR=<你的固定IP地址> NETMASK=<你的子网掩码> GATEWAY=<你的网关> DNS1=<你的首选DNS服务器> DNS2=<你的备用DNS服务器> 动态(dhcp获取) 如果你想使用动态获取IP地址的方式,你可以将BOOTPROTO的值更改为"dhcp"。以下是修改后的示例配置文件: TYPE=Ethernet BOOTPROTO=dhcp NAME=eth0 DEVICE=eth0 ONBOOT=yes 请注意,当使用动态获取IP地址时,不需要指定IPADDR、NETMASK、GATEWAY和DNS服务器。这些值将由DHCP服务器自动提供。

阅读全文>>

标签: centos 网卡 静态 动态

评论(0) (43)