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)
(514)
2022-7-15 myluzh
Docker
0x01 卸载旧版本
# 卸载旧版本docker
sudo apt-get remove docker docker-engine docker.io containerd runc
0x02 设置仓库
# 更新 apt 包索引
sudo apt-get update
# 安装 apt 依赖包,用于通过HTTPS来获取仓库
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
# 添加 Docker 的官方 GPG 密钥
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# 验证您现在是否拥有带有指纹的密钥
sudo apt-key fingerprint 0EBFCD88
# 设置稳定版仓库
sudo add-apt-repository \
"deb ...
阅读全文>>
标签: ubuntu docker
评论(0)
(119)
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)
(819)
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)
(795)
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)
(720)