MXBLOG - centos
type: channel
link: https://moonjer.com/tag/centos/
items: CentOS中yum安装ffmpeg
items: windows10安装docker运行centos8
items: CentOS单网卡配置多个IP地址
items: 虚拟机CentOS扩容虚拟磁盘

CentOS中yum安装ffmpeg
type: item
date: 2021-12-10T19:58:48+08:00
description: 1.升级系统sudo yum install epel-release -y sudo yum update -y sudo shutdown -r now2.安装Nux Dextop Yum 源由于CentOS没有官方FFmpeg rpm软件包。但是，我们可以使用第三方YUM源（Nux Dextop）完成此工作。1) CentOS 7sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm2) CentOS 6sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm3.安装FFmpeg 和 FFmpeg开发包sudo yum install ffmpeg ffmpeg-devel -y4.测试是否安装成功ffmpeg -version例子：使用FFmpeg将mp3转为oggffmpeg -i MLKDream_64kb.mp3 -c:a libvorbis -q:a 4 MLKDream_64kb.ogg使用FFmpeg将flv转为mp4ffmpeg -i beeen.flv -y -vcodec copy -acodec copy beeen.mp4

windows10安装docker运行centos8
type: item
date: 2021-11-10T13:23:46+08:00
description: 1.拉取镜像docker pull centos:centos8.4.21052.运行容器docker run -d -i -t --name centos8 --network=host centos:centos8.4.21053.安装centos内环境yum install -y net-tools

CentOS单网卡配置多个IP地址
type: item
date: 2021-10-28T10:59:30+08:00
description: 原配置新增配置TYPE=EthernetTYPE=EthernetBOOTPROTO=dhcpBOOTPROTO=dhcpDEFROUTE=yesDEFROUTE=yesPEERDNS=yesPEERDNS=yesPEERROUTES=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyIPV6_ADDR_GEN_MODE=stable-privacyNAME=ens33NAME=ens33:0 UUID=dd626172-0f19-400a-a6e7-4a99d70fdae2DEVICE=ens33:0ONBOOT=yesONBOOT=yes IPADDR=192.168.186.129 NETMASK=255.255.255.0 GATEWAY=192.168.186.1

虚拟机CentOS扩容虚拟磁盘
type: item
date: 2021-10-28T09:39:23+08:00
description: Last login: Tue Jun 29 22:08:12 2021 from 192.168.3.47 [root@localhost ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition g create a new empty GPT partition table G create an IRIX (SGI) partition table l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): ^C [root@localhost ~]#[root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/cl-root 17G 17G 3.3M 100% / devtmpfs 901M 0 901M 0% /dev tmpfs 912M 0 912M 0% /dev/shm tmpfs 912M 8.7M 904M 1% /run tmpfs 912M 0 912M 0% /sys/fs/cgroup /dev/sda1 1014M 185M 830M 19% /boot tmpfs 183M 0 183M 0% /run/user/1001 tmpfs 183M 0 183M 0% /run/user/0 [root@localhost ~]# ls /dev agpgart dm-1 loop-control pts tty tty21 tty35 tty49 tty62 vcs vga_arbiter autofs dmmidi mapper random tty0 tty22 tty36 tty5 tty63 vcs1 vhci block dri mcelog raw tty1 tty23 tty37 tty50 tty7 vcs2 vhost-net bsg fb0 mem rtc tty10 tty24 tty38 tty51 tty8 vcs3 vmci btrfs-control fd midi rtc0 tty11 tty25 tty39 tty52 tty9 vcs4 zero bus full mqueue sda tty12 tty26 tty4 tty53 ttyS0 vcs5 char fuse net sda1 tty13 tty27 tty40 tty54 ttyS1 vcs6 cl hidraw0 network_latency sda2 tty14 tty28 tty41 tty55 ttyS2 vcsa console hpet network_throughput sg0 tty15 tty29 tty42 tty56 ttyS3 vcsa1 core hugepages null shm tty16 tty3 tty43 tty57 uhid vcsa2 cpu hwrng nvram snapshot tty17 tty30 tty44 tty58 uinput vcsa3 cpu_dma_latency initctl oldmem snd tty18 tty31 tty45 tty59 urandom vcsa4 cr…