Myluzh Blog

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

Linux 启动服务 systemctl命令

2020-12-19 myluzh Linux

systemctl is-enabled servicename.service #查询服务是否开机启动 systemctl enable *.service #开机运行服务 systemctl disable *.service #取消开机运行 systemctl start *.service #启动服务 systemctl stop *.service #停止服务 systemctl restart *.service #重启服务 systemctl reload *.service #重新加载服务配置文件 systemctl status *.service #查询服务运行状态

阅读全文>>

标签: centos linux ubuntu systemctl

评论(0) (692)

Ubuntu 20.04 换国内源

2020-12-18 myluzh Linux

文件位置:/etc/apt/sources.list #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ ...

阅读全文>>

标签: ubuntu

评论(0) (656)

Ubuntu 20.04 安装配置LNMP环境

2020-12-18 myluzh Linux

0x01安装Nginx 安装Nginx sudo apt-get install nginx 启动Nginx服务 sudo /etc/init.d/nginx start 停止Nginx服务 sudo /etc/init.d/nginx stop 加载最新配置 sudo /etc/init.d/nginx reload 默认配置文件位置简单配置 /etc/nginx/sites-enabled/default server { listen 80; server_name localhost; root /var/www/html; location / { index index.php index.html; #autoindex off; } #开启php location ~ \.php(.*)$ { #"netstat -npl | grep php"可以找到php run路径 ...

阅读全文>>

标签: ubuntu lnmp

评论(0) (536)

强制修改Linux虚拟机root密码

2020-2-26 myluzh Linux

等出现GRUB引导菜单的时候,"E"键进入编辑模式。 找到linux这一条,把ro改成rw,后面加上 init=/bin/bash 然后Ctrl+X或者F10继续启动,进入进入单用户命令行界面,直接passwd命令重置密码即可 这个方法理论上所有linux系统都可以,我只在kali跟ubuntu上试过

阅读全文>>

标签: kali linux 重置密码 ubuntu root

评论(0) (2688)