非必要不建议缩减分区,避免数据丢失。[root@kvm ~]# umount /data[root@kvm ~]# parted /dev/sdcGNU Parted 3.1Using /dev/sdcWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) pModel: VMware, VMware Virtual S (scsi)Disk /dev/sdc: 21.5GBSector size (logical/physical): 512B/512BPartition Table:...
一、分区扩容 思路:parted先删除原有分区, 重建分区,用e2fsck检查一下分区, 再用resize2fs扩容分区文件系统[root@kvm ~]# fuser -m -k /home //结束占用home的进程,可以加一个-i 参数,杀死一个程序前,会询问[root@kvm ~]# umount /home[root@kvm ~]# parted /dev/sdcGNU Parted 3.1Using /dev/sdcWelcome to GNU Parted! Type 'help' to view a list ...
https://blog.csdn.net/terryliu98/article/details/26479359[root@kvm ~]# fdisk -l /dev/sdcWARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.Disk /dev/sdc: 21.5 GB, 21474836480 bytes, 41943040 sectorsUnits = sectors of 1 * 512 = 512 bytes...
1、msdos分区支持小于2T的硬盘,不支持大于2T的硬盘有主分区,扩展分区,逻辑分区如果使用fdisk命令给一个大于2T的msdos类型硬盘分区,只能给2T的部分分区,超过2T的部分不能使用,也就浪费了。2、gpt分区支持大小容量的硬盘不区分主分区,扩展分区,逻辑分区,也没有4个分区数量的限制一、通过parted创建分区[root@kvm ~]#parted /dev/sdcGNU Parted 3.1Using /dev/sdcWelcome to GNU Parted! Type 'help' to view a list of commands.(parted)m...
原因云锁开启“登录防护”功能后会修改PAM认证模块/etc/pam.d/sshd中配置,生成/etc/pam.d/password-auth-ys,卸载后PAM相关配置没还原成功。[root@ebs-71258 ~]# cat /etc/pam.d/sshd #%PAM-1.0 auth required pam_sepermit.so auth  ...
[root@ mysql]# mysql -uroot -pEnter password:mysql> show databases;+--------------------+| Database |+--------------------+| information_schema |+--------------------+1 row in set (0.00 sec)mysql> use mysql;ERROR 1044 (42000): Access denied for user &...
我的理解,该指令用于让浏览器自动升级请求从http到https,用于大量包含http资源的http网页直接升级到https而不会报错.简洁的来讲,就相当于在http和https之间起的一个过渡作用.web.config<configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Content-Se...
curl -o /dev/null -s -w time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t...