文章分类 -  system

摘要:1.集群方式启动脚本 # zookeeper 脚本 [root@kafka03 ~]# vim /usr/lib/systemd/system/zookeeper.service [Unit] Description=Apache Zookeeper server (Kafka) Documenta 阅读全文
posted @ 2020-07-14 17:49 sunmmi 阅读(426) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-07-01 10:40 sunmmi 阅读(0) 评论(0) 推荐(0)
摘要:1.服务文件 vim /usr/lib/systemd/system/php-fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Service] Typ 阅读全文
posted @ 2020-06-03 17:48 sunmmi 阅读(346) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-04-08 15:59 sunmmi 阅读(0) 评论(0) 推荐(0)
摘要:# https://github.com/Nyr/openvpn-install # # Copyright (c) 2013 Nyr. Released under the MIT License. # Detect Debian users running the script with "sh" instead of bash if readlink /proc/$$/exe | gr... 阅读全文
posted @ 2019-05-27 14:23 sunmmi 阅读(225) 评论(0) 推荐(0)
摘要:按下TAB键,输入net.ifnames=0 biosdevname=0 阅读全文
posted @ 2019-05-10 11:57 sunmmi 阅读(1295) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-01-11 15:12 sunmmi 阅读(2) 评论(0) 推荐(0)
摘要:#复制一份yum.conf,默认keepcache=0即不保存包头和软件包,1为保存 [root@sql2 etc]# cat /etc/yum.conf|grep keep #查询keep的值,默认1为不缓存 #keepcache=0 [root@sql2 etc]# cp yum.conf yum.conf.xy #复制一份保存 [root... 阅读全文
posted @ 2018-12-24 10:28 sunmmi 阅读(131) 评论(0) 推荐(0)
摘要:1.查看系统gcc版本 2.下载安装gcc 3.查看安装 4.重启系统,查看gcc版本 5.运行以下命令检查动态库 6.将上面的最新动态库libstdc++.so.6.0.22复制到/usr/lib64目录下 7.删除原来软连接或重命名老的GCC 8.将默认库的软连接指向最新动态库 9.默认动态库升 阅读全文
posted @ 2018-12-05 16:32 sunmmi 阅读(186) 评论(0) 推荐(0)
摘要:test01免密等test02 # test01免密等test02, [root@test01 db_day]# ssh-keygen -t rsa -P "" [root@test01 db_day]# ssh-copy-id -i /root/.ssh/id_rsa.pub -p 10022 r 阅读全文
posted @ 2018-11-05 15:18 sunmmi 阅读(115) 评论(0) 推荐(0)
摘要:# 第一步手工标准化建库基本上已经不用了 # 第二步shell脚本一键安装 # 第三步ansible安装 # 第四步自动化运维平台安装初始化 # 关闭numa的方法有三种 1.一种是bios关闭,我们目前新上的机器直接就在bios关闭numa 2.另外操作系统级别也可以关闭,vim /boot/grub/grub.conf在内核对应的位置添加numa=off 3.或者启动MySQL加numa... 阅读全文
posted @ 2018-08-17 12:25 sunmmi 阅读(1736) 评论(0) 推荐(0)
摘要:vim /lib/systemd/system/supervisord.service # supervisord service for systemd (CentOS 7.0+) [Unit] Description=Supervisor daemon [Service] Type=forking ExecStart=/usr/bin/supervisord -c /etc/superv... 阅读全文
posted @ 2018-08-17 12:13 sunmmi 阅读(320) 评论(0) 推荐(0)
摘要:vim /lib/systemd/system/nginx.service [Unit] Description=nginx After=network.target [Service] Type=forking ExecStart=/usr/local/nginx/sbin/nginx ExecR 阅读全文
posted @ 2018-02-10 16:54 sunmmi 阅读(769) 评论(0) 推荐(0)
摘要:http://www.pool.ntp.org/zone/cn 阅读全文
posted @ 2017-12-06 14:29 sunmmi 阅读(81) 评论(0) 推荐(0)
摘要:故障现象 1. SQL Server 管理工具连接SQL提示如下错误 2. telnet 202.xx.xx.xx 18607,等了好一会才通(正常情况下是秒级测通的) 思路: https://zh.wikipedia.org/wiki/%E6%98%BE%E5%BC%8F%E6%8B%A5%E5%A1%9E%E9%80%9A%E7%9F%A5 1. 在外部或其他地方用sql s... 阅读全文
posted @ 2017-09-27 15:51 sunmmi 阅读(181) 评论(0) 推荐(0)
摘要:常用的三种Bond模式 加载bond模块支持 双网卡绑定 检查 http://blog.csdn.net/wuweilong/article/details/39720571https://wsgzao.github.io/post/bonding/ 阅读全文
posted @ 2017-08-22 11:54 sunmmi 阅读(312) 评论(0) 推荐(0)
摘要:1.安装系统时 按下tab键盘,在末尾增加内核参数:net.ifnames=0 biosdevname=0 输入完成之后回车正常安装操作系统就好了 2.安装完系统后更改网卡名 阅读全文
posted @ 2017-08-21 20:30 sunmmi 阅读(191) 评论(0) 推荐(0)
摘要:2.方法二 阅读全文
posted @ 2017-08-21 19:14 sunmmi 阅读(96) 评论(0) 推荐(0)
摘要:1.查询系统版本 2.创建sftp目录,用户,指定家目录 3.修改sshd配置文件 4.配置755权限,记录一个供上传的文件夹 阅读全文
posted @ 2017-08-16 10:39 sunmmi 阅读(389) 评论(0) 推荐(0)
摘要:1.查询安装包情况 2.安装必要的软件包 3.更新补丁 阅读全文
posted @ 2017-07-05 11:19 sunmmi 阅读(162) 评论(0) 推荐(0)