![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
fengfanghuang
huangfangfeng.github.io
展开
-
yum/apt改源
yum源:cd /etc/yum.repos.d/cp /CentOS-Base.repo /CentOS-Base-repo.bakwget http://mirrors.aliyun.com/repo/Centos-7.repoyum clean allmv Centos-7.repo CentOS-Base.repoyum makecacheyum updateapt源:mv -f /etc/apt/sources.list /etc/apt/sources.list.ba原创 2022-03-10 16:55:16 · 1229 阅读 · 0 评论 -
linux vnc远程登录
安装所需软件:yum install xrdpyum install tigervnc-servervncpasswd root #设置vnc密码(可选)修改最大连接数:vim /etc/xrdp/xrdp.inimax_bpp=32 #即最大连接数32关闭防火墙systemctl stop firewalld.service设置开机不启动防火墙:systemctl disable firewalld.servie关闭SElinuxSElinux应该关闭它。查看S原创 2021-07-18 17:22:15 · 730 阅读 · 0 评论 -
改yum源脚本
#!/bin/sh#Please run this script as root.wget http://mirrors.aliyun.com/repo/Centos-Base.repo -O /etc/yum.repos.d/CentOS-Base.repowget http://***/your-repo.repo-O /etc/yum.repos.d/your-repo.repoyum clean all && yum makecacheyum update ..原创 2021-07-18 17:05:13 · 166 阅读 · 0 评论