摘要: 初衷 • 本地开多个虚拟机搞集群测试,为了节省资源,关掉图形界面更好点 阅读全文
posted @ 2019-03-07 09:51 侃豺小哥 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh #filename: checkProcess.sh #示例:每分钟检测httpd是否在运行,不在运行则重启 #crontab -e # 加入:*/1 * * * * checkProcess.sh "httpd" "/etc/init.d/httpd start" #------------------------------- # 函数: checkProcess # 功... 阅读全文
posted @ 2019-03-06 10:01 侃豺小哥 阅读(1631) 评论(0) 推荐(0) 编辑
摘要: 因为Linux安装软件的方式比较多,所以没有一个通用的办法能查到某些软件是否安装了。 总结起来就是这样几类: 一、rpm包安装的,可以用rpm -qa看到,如果要查找某软件包是否安装,用 rpm -qa | grep “软件或者包的名字” 。 二、以deb包安装的,可以用dpkg -l能看到。如果是 阅读全文
posted @ 2019-03-05 19:46 侃豺小哥 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 1. 默认不带ssh,所以需要安装一下ssh 2 .设置root密码,ubuntu默认root密码是随机的,需要重置一下 3. 允许root用户登录,编辑sshd_config 4.最后当然是选择原谅ubuntu啦,重启ssh搞定 阅读全文
posted @ 2019-03-04 21:56 侃豺小哥 阅读(6356) 评论(0) 推荐(0) 编辑
摘要: 目标:使系统/服务器支持中文,能够正常显示。 1.首先,安装中文支持包language-pack-zh-hans: 2.然后,修改/etc/environment(在文件的末尾追加): 3.再修改/var/lib/locales/supported.d/local(没有这个文件就新建,同样在末尾追加 阅读全文
posted @ 2019-03-04 21:27 侃豺小哥 阅读(2517) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #linux.info.sh #系统信息查看 [ -f /usr/sbin/dmidecode ] && { dmidecode | grep 'Product Name' |uniq; } echo if [ -f /etc/redhat-release ];then ca 阅读全文
posted @ 2019-03-04 21:20 侃豺小哥 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 系统优化脚本 !/bin/bash author junxi by this script is only for CentOS 7.x check the OS platform= if [ $platform != "x86_64" ];then echo "this script is onl 阅读全文
posted @ 2019-03-02 17:08 侃豺小哥 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 数据库与表的操作 查 数据保存策略(Retention Policies) 用户管理 阅读全文
posted @ 2019-02-28 12:47 侃豺小哥 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 交换机开启LACP,配置聚合。 网卡eno1, eno2, eno3。eno1为管理口,eno2和eno3绑定,配置bond4. 配置eno2: vim /etc/sysconfig/network scripts/ifcfg eno2 ifcfg eno2配置如下: 配置eno3: vim /et 阅读全文
posted @ 2019-02-28 11:12 侃豺小哥 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: 并行备份 节流备份 压缩备份 innobackupex p123123 compress /backup innobackupex p123123 compress compress threads=8 /backup innobackupex p123123 parallel=8 compress 阅读全文
posted @ 2019-02-15 11:11 侃豺小哥 阅读(307) 评论(0) 推荐(0) 编辑