配置csf防火墙

启动lfd时报错: [root@jump1-iuap-hb2-ali system]# systemctl restart csf [root@jump1-iuap-hb2-ali system]# systemctl restart lfd Job for lfd.service failed because a configured resource limit was exceeded. See “systemctl status lfd.service” and “journalctl -xe” for details. 解决: 编辑/etc/csf/csf.conf, 将下面改为0: PT_USERMEM = “0″ 配置csf 为openvpn: 参考: https://www.grumpyland.com/blog/238/making-csf-work-with-openvpn/ 创建文件:         vim /etc/csf/csfpre.sh 添加如下内容: iptables -A FORWARD -m Read more…

ipa client 安装记

安装ipa-client的时候, 总是如下报错: [root@optdocker1-iuap-hb2-ali sean]# ipa-replica-install –setup-dns –forwarder 8.8.8.8 –setup-ca –auto-reverse –principal admin –admin-password XXXXXX Discovery was successful! Client hostname: optdocker1-iuap-hb2-ali.yonyouiuap.com Realm: YONYOUIUAP.COM DNS Domain: yonyouiuap.com IPA Server: freeipa1-iuap-hb2-ali.yonyouiuap.com BaseDN: dc=yonyouiuap,dc=com Continue to configure the system with these values? [no]: yes Error trying to clean keytab: /usr/sbin/ipa-rmkeytab returned 1 Synchronizing time Read more…

freeipa replica安装记

在安装ipa多主时: ipa-replica-install –setup-dns –forwarder 8.8.8.8 –setup-ca –auto-reverse –principal admin –admin-password XXXXX 执行以上命令安装时, 一直在报错:

查了下google, 终于找到一篇文章: https://pagure.io/freeipa/issue/6613 具体就是: pki-tomcat的8009端口没启来, 原因是: This is a duplicate of https://fedorahosted.org/freeipa/ticket/6575. We’re working on a fix. As mentioned in comment:16, changing ::1 to localhost or 127.0.0.1 in /var/lib/pki/pki-tomcat/conf/server.xml in ‘address’ field of AJP/1.3 Connector fixes the Read more…

openvpn web ui 安装记

之前让同事架设了一个openvpn, 后来同事离职, 用命令注销账号, 确老是报错, 后来不断有新账号加入需要, 后来想要是有个web页面去管理就好了,就在github上搜, 后来找到了这个项目: https://github.com/Chocobozzz/OpenVPN-Admin 正符合需要, 于是就开始clone下来安装. 依次输入命令:

./install.sh /data/apps/www_openvpn sean admin Server Hostname/IP: x.x.x.x Port [443]: xxxx MySQL root password: MySQL user name for OpenVPN-Admin (will be created): admin MySQL user password for OpenVPN-Admin: ############ Certificates informations ################## Key size (1024, 2048 or 4096) [2048]: Read more…

解决霸道的 Windows 10 更新后的自动重启行为

我用电脑通常是上午开了就会到晚上睡觉前才关的,习惯工作时打开一大坨软件备用,而且经常工作一段时间就会休息一下——吃饭/喝杯茶/上厕所/找个地方发呆/出街去朋友店里坐一下…然后回来继续,偶尔敲的代码会忘记 Save 回来时继续敲。 但是……不知道什么时候开始,Windows 10 自己后台更新后会弹出重启倒计时,如果你没按选项就会在指定时间内自动重启。所以问题就来了:好几次刚好我出去或者家里吃晚饭时遇到自动更新完需要重启,等我回来时 Windows 10 停在登录界面,尼王马—— 我未保存的代码呢? 刚才还没看完的网页呢? 休息时看到一半的视频呢? 正在下载的文件才下了一半… …… 于是去找设置,竟然没有“有更新通知我”类似的设置了,有个工作时间内不要重启的功能,但尼王马只能设置1-12小时,微软你不知道中国的码农工作时间很长的么?想用 1:00-24:00 曲线避开重启都不行! 放 G 搜,还真多人遇到,解决方法是通过修改注册表找回原来的设置,我嫌太麻烦,后来用了“禁用Reboot任务计划”来实现,方法是: 在开始按钮右键(Win键+X)> 弹出的菜单中选择“计算机管理” 在打开的“计算机管理”窗口中依次展开定位至以下路径:系统工具 – 任务计划程序 – 任务计划程序库 – Microsoft – Windows – UpdateOrchestrator 在右侧窗格中即可看到 Reboot 任务计划,右键点击 Reboot 任务计划,选择“禁用”。如下图: 微软你继续微软不行么,这坑人的微硬有意思么? —- 2016.12.05 更新:我现在用的方法是通过组策略来禁止自动更新(要使用组策略只能是 Windwos 10专业版、企业版、教育版吧) Win+R 键打开运行窗口,输入 gpedit.msc 确定打开组策略 然后打开通过“计算器配置”……看图吧  

安装配置java7

How to Install JAVA 7 (JDK 7u79) on CentOS/RHEL 7/6/5 and Fedora Written by Rahul K. JAVA, Linux Tutorials 81 Comments During installation of Java using rpm files I faced issues many times. After that i found a better way to install java from Sun site. Using below steps i Read more…

docker集群运行在calico网络上

https://my.oschina.net/u/1791060/blog/827084 网络及版本信息 docker1 centos7 192.168.75.200 docker2 centos7 192.168.75.201 物理网络 192.168.75.1/24 Docker version 1.10.3, build 3999ccb-unsupported ,安装过程略 # calicoctl version Version: v1.0.0-12-g0d6d228 Build date: 2017-01-17T09:01:03+0000 Git commit: 0d6d228 1.安装etcd 下载安装etcd # ETCD_VER=v3.0.16 # DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download # curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz # mkdir -p /tmp/test-etcd && tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/test-etcd –strip-components=1 Read more…

openvpn架设

http://zhuwanjun.com/?m=201409   CentOS安装OpenVPN 发表评论 CentOS版本:6.4 OpenVPN版本:2.3.4 1.安装依赖包 yum install openssl-devel lzo-devel pam-devel gcc 2.下载安装包 从官网下载安装包openvpn-2.3.4.tar.gz,解压 ./configure make make install 3.安装easy-rsa 新建/etc/openvpn 下载wget https://github.com/OpenVPN/easy-rsa/archive/release/2.x.zip 解压上述文件,进入解压后的目录 cp -r ./easy-rsa /etc/openvpn 修改/etc/openvpn/easy-rsa/2.0/var文件 # These are the default values for fields # which will be placed in the certificate. # Don’t leave any of Read more…

centos7 在开机启动时配置grub进入字符界面

centos 7 从字符界面改成图形界面启动后, 启动失败, 在started accounts service 这一步卡住, 经分析可能跟图形驱动有关,  要改回字符界面, 在开机grub时, 选内核, 按e, 在有linux16的这一行末, 添加 digit 3, ctrl-x重启即可进入字符界面: 下面是网上搜索到的: https://www.centos.org/forums/viewtopic.php?t=47928 On the initial grub boot screen you press Esc to get the kernel list then hit ‘e’ to edit the top one, scroll down to the ‘linux16’ or ‘linuxefi’ lines Read more…