linux
fengfanghuang
huangfangfeng.github.io
展开
-
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 · 663 阅读 · 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 · 134 阅读 · 0 评论 -
创建loop设备方法
1. 创建100G大文件# dd if=/dev/zero of=/home/test.img bs=1M count=1024002.创建loop设备# losetup /dev/loop0 /home/test.img3.创建开机自动生成loop设备vim /etc/rc.d/rc.local追加:losetup /dev/loop0 /home/test.img原创 2021-07-02 14:06:01 · 803 阅读 · 0 评论 -
centos安装fio和gfio(图形界面)
安装1. yum install gcc2. yum install libaio-devel (必须先安装,否则卸载fio后重新执行)3.从官网下载最新安装包http://freecode.com/projects/fio4.解压tar -zxvf fio-2.1.10.tar.gz5. 进入目录 cd fio-2.1.106.执行./configguremakemake install...原创 2021-06-28 23:25:57 · 3688 阅读 · 0 评论 -
开启硬件虚拟化
BIOS 启用虚拟化内核加载:modprobe kvm-intelmodprobe vhost-vsockIOMMU开启:ls /sys/firmware/ | grep efi1 修改/etc/default/grub, 调整GRUB_CMDLINE_LINUX内容amd_iommu:GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet amd_iommu=on iommu=pt"或intel_iommu: GRUB_..原创 2021-06-28 22:53:53 · 7770 阅读 · 0 评论 -
goland环境搭建(linux)
下载如版本:go1.14.4.linux-amd64.tar.gzwget -c https://studygolang.com/dl/golang/go1.14.4.linux-amd64.tar.gztar -C /usr/local -xzf go1.14.4.linux-amd64.tar.gz配置环境变量# vi /root/.bashrcexport GOROOT=/usr/local/goexport GOPATH=/root/goexport PATH=$PATH:原创 2021-06-26 16:11:32 · 528 阅读 · 0 评论