随笔分类 -  Linux学习

摘要:LVM 作为一种逻辑卷管理技术,可以在 MBR 和 GPT 分区的磁盘上实现,但 GPT 由于支持更大的磁盘和动态扩容,与 LVM 结合使用时更为灵活和强大。 LVM 可以比作面团,GPT MBR是不同品牌的面粉。 磁盘分区类型 MBR(Master Boot Record) 传统分区方案 支持最大 阅读全文
posted @ 2024-11-27 14:56 cloud-qing0212 阅读(60) 评论(0) 推荐(0) 编辑
摘要:MySQL #用户管理及授权 CREATE USER luke@localhost IDENTIFIED BY 'linuxprobe'; grant all on *.* to luke@localhost; grant select,update,delete,insert on mysql.u 阅读全文
posted @ 2024-11-19 19:13 cloud-qing0212 阅读(3) 评论(0) 推荐(0) 编辑
摘要:vim 99.sh #/bin/bash##99乘法表 #!/bin/bashfor j in {1..9}dofor i in `seq $j`doecho -e -n "${i}x${j}=$[ $i * $j ]\t"doneechodone 脚本执行效果 [root@localhost sh 阅读全文
posted @ 2024-10-21 14:38 cloud-qing0212 阅读(42) 评论(0) 推荐(0) 编辑
摘要:1. 查看老版本系统内核 2. 升级内核 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch. 阅读全文
posted @ 2022-08-12 11:33 cloud-qing0212 阅读(196) 评论(0) 推荐(0) 编辑
摘要:问题场景: Docker服务安装之后启动报错 日志如下: time="2022-03-20T21:51:16.116163560+08:00" level=info msg="Error while creating filesystem xfs on device docker-253:0-101 阅读全文
posted @ 2022-03-20 22:12 cloud-qing0212 阅读(208) 评论(0) 推荐(0) 编辑
摘要:前提:配置好yum源 1. 安装mariadb-server systemctl start mariadb.service systemctl enable mariadb.service mysql_secure_installation 2.创建数据库 mysql> create databa 阅读全文
posted @ 2021-06-12 23:57 cloud-qing0212 阅读(92) 评论(0) 推荐(0) 编辑
摘要:Linux 添加静态路由: 1.暂时生效: route add -net 192.168.7.0/24 gw 192.168.7.254 route del -net 192.168.7.0/24 gw 192.168.7.254 #删除路由 2.永久生效 在/etc/sysconfig/netwo 阅读全文
posted @ 2021-06-12 20:20 cloud-qing0212 阅读(432) 评论(0) 推荐(0) 编辑
摘要:fence机制: 隔离主机到存储的连接 配置fence_xvm步骤 KVM fence 请问物理机器需要真实的fence 设备吗? 否 一、将物理机器(宿主机)f0配置成fence设备 1. 安装fence设备软件包 #yum -y install fence-virtd-libvirt.x86_6 阅读全文
posted @ 2021-06-02 22:18 cloud-qing0212 阅读(428) 评论(0) 推荐(0) 编辑
摘要:准备工作: 准备5台虚拟机 classroom 用来做yum源 NTP nodea 172.24.1.6 172.24.16.6 nodeb 172.24.1.7 172.24.16.7 nodec 172.24.1.8 172.24.16.8 storage 172.24.1.5 172.24.1 阅读全文
posted @ 2021-06-02 17:30 cloud-qing0212 阅读(167) 评论(0) 推荐(0) 编辑
摘要:1、首先挂载cdromcat >> /etc/fstab <<EOF/dev/sr0 /media iso9660 defaults,ro 0 0EOF添加yum源配置需要注意的是,跟之前版本不一样了,光盘挂载本地yum源多了一级目录:BaseOS 是系统的一些软件,而AppStream则是应用软件 阅读全文
posted @ 2021-03-04 12:59 cloud-qing0212 阅读(539) 评论(0) 推荐(0) 编辑
摘要:Linux系统调优学习笔记 rhel8.0 思路:先找出系统瓶颈在哪,再进行调优,每一个调优参数既有优点又有缺点 调优逻辑性: 架构调优 硬件调优 代码优化 配置优化 最有效,成本贵,难实现 最常用,成本低,效果较差 调优对象: CPU 内存 磁盘 网络 调优单位: KB Byte KB 1000 阅读全文
posted @ 2021-03-04 11:47 cloud-qing0212 阅读(116) 评论(0) 推荐(0) 编辑
摘要:登录web 创建一个项目 baozhun_test写hosts表 、daemon.json 写不安全网站认证重启docker harbor打 tag docker tag nginx:latest harbor.xjky.com/baozhun_test/nginx:1.15在服务器登录 horba 阅读全文
posted @ 2020-09-03 20:12 cloud-qing0212 阅读(1519) 评论(0) 推荐(0) 编辑
摘要:准备一台可以上外网的linux服务器 开始部署 (1) 生成秘钥openssl genrsa -des3 -out server.key 1024openssl rsa -in server.key -out server.keyopenssl req -new -key server.key -o 阅读全文
posted @ 2020-09-03 18:23 cloud-qing0212 阅读(149) 评论(0) 推荐(0) 编辑
摘要:环境准备:准备一台centos 7服务器,安装好 jdk1.8 ,准备好jenkins安装包 jenkins安装包下载地址:https://breezey-public.oss-cn-zhangjiakou.aliyuncs.com/softwares/jenkins-2.254-1.1.noarc 阅读全文
posted @ 2020-08-28 19:01 cloud-qing0212 阅读(398) 评论(0) 推荐(0) 编辑
摘要:triple O :openstack on openstack BMC 端口:623 virsh list --all virt-manage vht-vmctl reset overcloud 阅读全文
posted @ 2020-08-07 00:55 cloud-qing0212 阅读(339) 评论(0) 推荐(0) 编辑
摘要:解决方案: 1、进入容器 elasticsearch-head:5 。 docker exec -it lucid_mayer /bin/bash 2、为容器安装vim apt-get update apt-get install vim -y 3、编辑文件 cd _site/ vim vendor 阅读全文
posted @ 2020-07-30 13:44 cloud-qing0212 阅读(429) 评论(0) 推荐(0) 编辑
摘要:1.准备一个glusterfs 存储 gluster volume create onevol 192.168.1.99:/storage6/brick02 gluster volume start onevol gluster volume info onevol 看到如下信息,则证明gluste 阅读全文
posted @ 2020-07-24 18:52 cloud-qing0212 阅读(633) 评论(0) 推荐(0) 编辑
摘要:1.使linux可以上外网 2.yum update kernel -y 3.awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg #查看默认启动内核 4.grub2-set-default 0 #设置默认启动内核 5.reb 阅读全文
posted @ 2020-07-18 13:02 cloud-qing0212 阅读(290) 评论(0) 推荐(0) 编辑
摘要:扩容前根分区为40G 开始扩容,步骤如下: 1.添加一块硬盘 2.创建 pv pvcreate /dev/sdb 3.找到根分区的 vg 可以通过 vgdisplay查看 4.扩容vg vgextend centos /dev/sdb 5.扩容 lv lvextend -L +50G /dev/ce 阅读全文
posted @ 2020-07-08 18:30 cloud-qing0212 阅读(881) 评论(0) 推荐(0) 编辑
摘要:1.在Oracle官网下载jdk-14.0.1的安装包 https://jdk.java.net/14/ 2.将安装包拷贝到Linux系统下 3.解压 tar -zxvf openjdk-14.0.1_linux-x64_bin.tar.gz 4.修改配置文件,添加环境变量 vim /etc/pro 阅读全文
posted @ 2020-06-07 12:00 cloud-qing0212 阅读(1289) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示