当前位置: 首页 > news >正文

wordpress默认主题资源专业网站优化排名

wordpress默认主题,资源专业网站优化排名,wordpress 增加 专题,快速模仿一个网站Centos 8系统xfs文件系统类型进行扩容缩容 #xff08;LVM#xff09;,xfs分区类型是不支持正常缩容#xff0c;只能强制缩容 1.磁盘情况#xff1a;2.缩容home分区1.备份home数据#xff1a;2.查找使用 /home 的进程#xff1a;3.终止这些进程#xff1a;4.卸载 /home … Centos 8系统xfs文件系统类型进行扩容缩容 LVM,xfs分区类型是不支持正常缩容只能强制缩容 1.磁盘情况2.缩容home分区1.备份home数据2.查找使用 /home 的进程3.终止这些进程4.卸载 /home 分区5.强制缩容home系统大小6.强制格式化home分区7.挂载/home 分区8.恢复备份数据 3.扩容root分区1.扩展根分区的逻辑卷2.对扩展后的文件系统进行调整3.确认扩展结果 1.磁盘情况 [rootlocalhost ~]# df -Th 文件系统 类型 容量 已用 可用 已用% 挂载点 devtmpfs devtmpfs 876M 0 876M 0% /dev tmpfs tmpfs 895M 0 895M 0% /dev/shm tmpfs tmpfs 895M 8.7M 887M 1% /run tmpfs tmpfs 895M 0 895M 0% /sys/fs/cgroup /dev/mapper/cl-root xfs 70G 3.8G 67G 6% / /dev/sda2 xfs 1014M 213M 802M 21% /boot /dev/mapper/cl-home xfs 127G 935M 126G 1% /home /dev/sda1 vfat 599M 7.3M 592M 2% /boot/efi tmpfs tmpfs 179M 0 179M 0% /run/user/02.缩容home分区 把home分区的空间划一部分到root分区 1.备份home数据 xfs文件类型 缩容home只能强制缩容 这一步非常重要。在修改分区之前请确保备份所有重要数据。 mkdir /root/home cp /home/* /root/home2.查找使用 /home 的进程 lsof D /home 例如 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME bash 1234 user1 cwd DIR 8,1 4096 2 /home/user1 firefox 5678 user1 mem REG 8,1 123456 3 /home/user1/.mozilla/firefox/xxxxxx.default/...3.终止这些进程 sudo kill -9 1234 sudo kill -9 56784.卸载 /home 分区 sudo umount /home5.强制缩容home系统大小 [rootlocalhost ~]# lvcreate -L 20G -n home_temp cl Volume group cl has insufficient free space (0 extents): 5120 required. [rootlocalhost ~]# lvreduce -L 20G /dev/cl/homeWARNING: Reducing active logical volume to 20.00 GiB.THIS MAY DESTROY YOUR DATA (filesystem etc.) Do you really want to reduce cl/home? [y/n]: ySize of logical volume cl/home changed from 126.38 GiB (32353 extents) to 20.00 GiB (5120 extents).Logical volume cl/home successfully resized.6.强制格式化home分区 [rootlocalhost ~]# mkfs.xfs -f /dev/cl//home meta-data/dev/cl//home isize512 agcount4, agsize1310720 blks sectsz512 attr2, projid32bit1 crc1 finobt1, sparse1, rmapbt0 reflink1 data bsize4096 blocks5242880, imaxpct25 sunit0 swidth0 blks naming version 2 bsize4096 ascii-ci0, ftype1 log internal log bsize4096 blocks2560, version2 sectsz512 sunit0 blks, lazy-count1 realtime none extsz4096 blocks0, rtextents0 Discarding blocks...Done.7.挂载/home 分区 [rootlocalhost ~]# mount -a8.恢复备份数据 sudo cp /root/home/* /home/3.扩容root分区 1.扩展根分区的逻辑卷 现在我们可以将原本分配给 /home 的空间扩展到 /root 分区 [rootlocalhost ~]# lvextend -l 100%FREE /dev/cl/rootSize of logical volume cl/root changed from 70.00 GiB (17920 extents) to 176.38 GiB (45153 extents).Logical volume cl/root successfully resized.2.对扩展后的文件系统进行调整 [rootlocalhost ~]# xfs_growfs /dev/mapper/cl-root meta-data/dev/mapper/cl-root isize512 agcount4, agsize4587520 blks sectsz512 attr2, projid32bit1 crc1 finobt1, sparse1, rmapbt0 reflink1 data bsize4096 blocks18350080, imaxpct25 sunit0 swidth0 blks naming version 2 bsize4096 ascii-ci0, ftype1 log internal log bsize4096 blocks8960, version2 sectsz512 sunit0 blks, lazy-count1 realtime none extsz4096 blocks0, rtextents0 data blocks changed from 18350080 to 462366723.确认扩展结果 [rootlocalhost ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 devtmpfs 876M 0 876M 0% /dev tmpfs 895M 0 895M 0% /dev/shm tmpfs 895M 8.7M 887M 1% /run tmpfs 895M 0 895M 0% /sys/fs/cgroup /dev/mapper/cl-root 177G 4.5G 172G 3% / /dev/sda2 1014M 213M 802M 21% /boot /dev/sda1 599M 7.3M 592M 2% /boot/efi tmpfs 179M 0 179M 0% /run/user/0 /dev/mapper/cl-home 20G 175M 20G 1% /home [rootlocalhost ~]# lvdisplay--- Logical volume ---LV Path /dev/cl/rootLV Name rootVG Name clLV UUID gX9aeL-1Y8m-tGCz-Euka-YynN-SeY4-ecOMWuLV Write Access read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:22 -0400LV Status available# open 1LV Size 176.38 GiBCurrent LE 45153Segments 2Allocation inheritRead ahead sectors auto- currently set to 8192Block device 253:0--- Logical volume ---LV Path /dev/cl/homeLV Name homeVG Name clLV UUID dHsXfZ-okNT-82gk-6ed5-oXlP-BxUQ-rQV3xBLV Write Access read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:22 -0400LV Status available# open 1LV Size 20.00 GiBCurrent LE 5120Segments 1Allocation inheritRead ahead sectors auto- currently set to 8192Block device 253:2--- Logical volume ---LV Path /dev/cl/swapLV Name swapVG Name clLV UUID SDh6NB-5tsS-Sdd6-uYpz-ygNi-bKiF-lU5hqnLV Write Access read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:23 -0400LV Status available# open 2LV Size 2.03 GiBCurrent LE 520Segments 1Allocation inheritRead ahead sectors auto- currently set to 8192Block device 253:1
http://www.hkea.cn/news/14505292/

相关文章:

  • 专业网站建设公司需要做好哪些方面的工作千万别做网络管理员
  • 深圳建设工程交易中心主页网络网站推广优化
  • 网站 做购物车软件商店下载电脑版官网
  • 做网站域名起什么作用百度怎么打广告
  • 厦门网站建设企业dz网站建设教程
  • 怎么办一个网站个人网站备案需要哪些材料
  • 建设网站租用空间旅行网站的建设目录
  • 装修公司合作平台的网站个人备案网站可以做论坛吗
  • 建立主题网站的顺序是营销型网站页面布局
  • 济南市建设监理有限公司网站网站怎么推广最
  • 国外代理网站wordpress底部导航栏
  • 企业管理系统项目简介优化软件
  • 企业建设电子商务网站的目的房地产信息网首页
  • 滨海网站建设公司响应式官网设计
  • 建立网站如何规划和实施建设网站和数据库
  • 沈阳专业网站建设公司排名移动端网站开发环境
  • 中国建设工程造价管理协会网站简称广告投放数据分析报告
  • 网站建设公司自适应源码大数据分析师
  • 如何做外贸营销型网站推广自己做的网站怎么爬数据库
  • 网站后台模板html2021十大网络舆情案例
  • 广西教育平台网站建设梧州论坛 掌上红豆
  • 知名网站建设推荐农产品网络营销方案
  • 最流行的网站开发安徽网站推广
  • 网站开发设计电子书深圳营销型网站建设 宝安西乡
  • 青海省城乡建设厅网站台州网站设计开发
  • 郑州交易网站建设优秀网站分析案例
  • 黄山市非遗网站策划书小程序开发文档pdf
  • 网站建设在马来西亚北京新闻最新消息报道
  • 做产品包装的3d网站网站开发 团队构成
  • 公司的网站打不开装修网站推广方案