排序
L48※docker 常用命令汇总
1> 版本与信息查询 命令说明docker --version查看安装的Docker版本docker info获取Docker系统的详细配置信息 2> 镜像管理 命令说明docker images列出本地所有镜像docker search IMAGE_NAME搜索D...
L26※vps搭建kms服务器,激活Windows和Office
1> 安装docker docker安装步骤 2> 拉取镜像 docker pull condor369/kms:latest docker run -d -p 1688:1688 --name=kms --restart=always condor369/kms:latest 3> vps开放1688端口 开...
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
L16※ubuntu安装并配置samba
1> 安装samba sudo apt install samba samba-common 2> 创建共享目录并更改权限 mkdir -R /home/smb chmod -R 0777 /home/smb 3> 禁用selinux setenforce 0 4> 修改配置文件 vi /et...
L45※搭建matrix聊天服务器
1> 基于docker搭建 ① 生成配置文件 SYNAPSE_SERVER_NAME =mx.qq.com 可以将mx.qq.com 更改为自定义的域名 cd /data/matrix docker run -it --rm \ -v /data/matrix:/data \ -e SYNAPSE_SERV...
L43※Putty使用密钥登陆SSH
1> 使用putty生成公钥和私钥 2> 配置远程主机 将上一步保存的公钥保存在~/.ssh/authorized_keys文件中 chmod 400 ~/.ssh/authorized_keys 3> 使用sudo时不输入密码 在/etc/sudoers文件中增加(u...
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中的网卡名进行...
L42※使用 systemd 实现 screen 开机启动
1> 创建一个新的 systemd 服务文件 vim /etc/systemd/system/screen.service 2> 在新文件中添加以下内容 [Unit] Description=Screen Session [Service] Type=simple User=<you...
L38※搬瓦工VPS增加Swap分区
1> 关闭Swap分区 swapoff -a 2> 创建要Swap分区文件 dd if=/dev/zero of=/var/swapfile bs=1M count=2048 3> 格式化为Swap分区文件 mkswap /var/swapfile 4> 启用Swap分区 swapon /var/swapfile...
L39※禁止Debian 11自动休眠
1> 查看休眠状态 systemctl status sleep.target 2> 设置禁止休眠 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target