会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lixinliang
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
22
下一页
2019年8月8日
linux 操作系统修改主机名颜色以及记录操作历史记录
摘要: 一、修改主机名颜色: # root @ k8s-node05 cat /etc/profile 在文件末尾增加: # for bash_colorPS1="\e[33;36m#\e[0m \e[31;40m\u\e[0m @ \e[32;40m\h\e[0m\] in \e[33;40m\w\e[0
阅读全文
posted @ 2019-08-08 18:35 lixinliang
阅读(645)
评论(0)
推荐(0)
2019年7月26日
shell 免密批量执行脚本
摘要: 作用: 1. 可以在执行脚本过程中免输入yes 2.可以在执行脚本过程中免输入密码 脚本内容如下: *** ipfile.txt 为主机列表 [root@YZSJHL-N1-1 opt]# cat remote.sh #!/usr/bin/expect -f #chmod 777 distribut
阅读全文
posted @ 2019-07-26 13:52 lixinliang
阅读(773)
评论(0)
推荐(0)
2019年7月16日
MegaCli 清除与添加raid5
摘要: 一、操作原因 raid5组由12块硬盘组成,因其中一块硬盘损坏,备件库中无对应型号硬盘,所以将12块盘拆成11 块盘做raid5 二、操作流程 1、raid组信息 两块硬盘组成 raid1 (系统盘) 要卸载正在用的盘符: umount /dev/sdb1 2、清除raid 5 MegaCli -C
阅读全文
posted @ 2019-07-16 18:14 lixinliang
阅读(2778)
评论(0)
推荐(0)
2019年6月19日
centos7 mongodb4.0.2 复制集主从部署
摘要: 环境部署: 运行三个节点:每个节点都执行以下操作 >wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.0.2.tgz >tar xf mongodb-linux-x86_64-rhel70-4.0.2.tgz -C /root/ >mv mongodb-linux-x86_64-rhel70-4.0.2 ...
阅读全文
posted @ 2019-06-19 13:40 lixinliang
阅读(675)
评论(0)
推荐(0)
2019年5月22日
centos6.6 部署 cacti 并采集交换机流量
摘要: 一、环境 系统版本: centos 6.6 ip:192.168.71.32 配置: 4核 8G 20G硬盘 使用安装包: wget https://www.cacti.net/downloads/cacti-0.8.7g.tar.gz 架构图: 二、部署 # yum -y install http
阅读全文
posted @ 2019-05-22 14:29 lixinliang
阅读(600)
评论(0)
推荐(0)
2019年4月12日
shell 批量远程主机执行命令
摘要: [yunwei@Y24-209 ~]$cat ls.sh #!/bin/bash ip55=`cat ip1` for i in $ip55;do ping -c 1 $i if [ $? -eq 0 ];then ssh -t $i "ls" if [ $? -eq 0 ];then echo -e "$i" >> ok.ip else ...
阅读全文
posted @ 2019-04-12 13:12 lixinliang
阅读(707)
评论(0)
推荐(0)
2019年3月30日
rsync + sersync 实现实时数据同步
摘要: 一、环境: 主机1:youzhuan-bak centos 7.2 主机2:youzhuan-online centos 7.2 二、部署过程: youzhuan-bak : [root@youzhuan-bak ~]# yum install rsync -y [root@youzhuan-bak
阅读全文
posted @ 2019-03-30 16:20 lixinliang
阅读(186)
评论(0)
推荐(0)
2019年3月28日
ipmitool 工具使用
摘要: ipmi 工具使用: 一、 ipmitool lan print ipmitool -I open lan set 1 ipsrc static 设置本地BMC地址为静态,才能设置IP ipmitool -I open lan set 1 ipaddr 10.153.11.113 设置本地BMC的IP地址 ipmitool -I open...
阅读全文
posted @ 2019-03-28 13:43 lixinliang
阅读(2602)
评论(0)
推荐(0)
2019年3月5日
shell 批量修改较长字符串 字符串内容之间更换位置
摘要: cat 1.txt src='http://img2.tgbusdata.cn/v2/thumb/jpg/MkY5Myw2NTUsMzAzLDksMywxLC0xLDAscms1MCwxOTIuMTY4LjguNjc=/u/iphone.tgbus.com/UploadFiles/201806/2018062615240983.jpg' 要求 将 http://img2.tgbus...
阅读全文
posted @ 2019-03-05 14:06 lixinliang
阅读(361)
评论(0)
推荐(0)
2019年2月26日
批量修改目录下的文件夹以及文件属性
摘要: find . -type d -exec chmod 500 {} \; find . -type f -exec chmod 400 {} \;
阅读全文
posted @ 2019-02-26 16:32 lixinliang
阅读(548)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
22
下一页
公告