posted at 2024.6.4 10:31 by 风信子
A、开机重置用户密码
插入启动U盘,然后进入try模式。
sudo sumkdir /3mount /dev/nvme00n1p3 /3chroot /3passwd ccb
B、挂卸载U盘
less /proc/partitionsfdisk –lsudo mkdir udisksudu mount –t vfat /dev/sdb1 udisk //vfat->autocp *.deb udisksudo umount udisk
C、构建C程序
apt show gccsudo sumkdir sourcecodecd sourcesodevimi#include <stdio.h> int main(){printf(“Hello Worldcite!\n”); return 0;}esc:w hello.c:q!gcc hello.c –o hellols –l./hello
D、安装KVM虚拟机
a)麒麟高级服务器操作系统V10镜像做本地源步骤
(1)创建挂载路径
mkdir -p /mnt/iso
(2)创建挂载点
mount -o loop iso9660 Kylin-Server-10-xxx.iso /mnt/iso
(3)修改repo文件
cd etc/yum.repos.d/mkdir bakmv ./* /bak
(4)创建文件并将以下内容复制进文件中
vi kylin-Media.repo[kylin-media]name=kylin-Mediabaseurl=file:///mnt/iso/gpgcheck=0enabled=1
(5)更新索引
yum clean allyum makecache
(6)查看更新后的索引列表
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-kylinyum list
b)完成安装KVM
sudo su yum install libvirt* yum install virt-manager // vi /etc/selinux/config ? systemctl enable libvirtd systemctl start libvirtd virt-manager
98fb2a4c-dba4-4eb3-8028-3ada2183ec86|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: 程序, 模, 笔记
IT技术