Linux 操作共20篇
L33※镜像源-霜林轩

L33※镜像源

1> python 国内镜像源 ① 手动配置 vim /root/.pip/pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = https://pypi.tuna.tsinghu...
slzxf的头像-霜林轩slzxf3个月前
1321
L51※好玩儿的docker项目-霜林轩

L51※好玩儿的docker项目

0> 私有镜像 docker login --username=condor369 registry.cn-hangzhou.aliyuncs.com docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/slx-docker/[命名空间]:[镜像版...
slzxf的头像-霜林轩slzxf3个月前
1080
L21※linux添加中文字体-霜林轩

L21※linux添加中文字体

1> centos 修改中文字体 ① 查看所有字体 yum install fontconfig fc-list ② 查看中文字体 fc-list :lang=zh ③ 找到win10中需要的字体, 上传字体到/root ④ 把字体复制到/usr/share/fonts...
slzxf的头像-霜林轩slzxf4个月前
2480
L49※重置MariaDB或MySQL密码-霜林轩

L49※重置MariaDB或MySQL密码

1> 停止数据库服务器 sudo systemctl stop mysql sudo systemctl stop mariadb 2> 跳过数据库密码验证 sudo mysqld_safe --skip-grant-tables --skip-networking & mysql -uroot use ...
slzxf的头像-霜林轩slzxf6个月前
270
L50※开启nginx浏览目录及美化-霜林轩

L50※开启nginx浏览目录及美化

1> 下载fancyindex模块 cd /usr/local wget https://hub.condor.vip/ngx-fancyindex/ngx-fancyindex-0.5.2.tar.xz tar xvf ngx-fancyindex-0.5.2.tar.xz 2> 重新编译nginx 添加ngx-fancyi...
slzxf的头像-霜林轩slzxf6个月前
450
L48※docker 常用命令汇总-霜林轩

L48※docker 常用命令汇总

1> 版本与信息查询 命令说明docker --version查看安装的Docker版本docker info获取Docker系统的详细配置信息 2> 镜像管理 命令说明docker images列出本地所有镜像docker search IMAGE_NAME搜索D...
slzxf的头像-霜林轩slzxf6个月前
160
L47※debian关闭ipv6服务-霜林轩

L47※debian关闭ipv6服务

vim /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 sysctl -p
slzxf的头像-霜林轩slzxf8个月前
310
L43※Putty使用密钥登陆SSH-霜林轩

L43※Putty使用密钥登陆SSH

1> 使用putty生成公钥和私钥 2> 配置远程主机 将上一步保存的公钥保存在~/.ssh/authorized_keys文件中 chmod 400 ~/.ssh/authorized_keys 3> 使用sudo时不输入密码 在/etc/sudoers文件中增加(u...
slzxf的头像-霜林轩slzxf2年前
0872
L14※ubuntu 修改ip地址-霜林轩

L14※ubuntu 修改ip地址

1> ubuntu 18.04 ① 修改配置文件/etc/network/interfaces vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 #设置自动启动eth0接口,eth0根据ifconfig中的网卡名进行...
slzxf的头像-霜林轩slzxf2年前
1421
L39※禁止Debian 11自动休眠-霜林轩

L39※禁止Debian 11自动休眠

1> 查看休眠状态 systemctl status sleep.target 2> 设置禁止休眠 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
slzxf的头像-霜林轩slzxf2年前
1191