RHEL

Docker behind proxy that changes ssl certificate

江枫思渺然 提交于 2019-11-28 20:37:24
I am trying to run the following docker command: docker run -i -t ubuntu /bin/bash But I get the error: Unable to find image 'ubuntu' (tag: latest) locally Pulling repository ubuntu 2013/11/28 14:00:24 Get https://index.docker.io/v1/images/ubuntu/ancestry: x509: certificate signed by unknown authority I know that our company replaces the SSL Certificate on the fly for https requests. I tried to trust our company's CA certificate by putting it in: /etc/pki/tls/certs/ca-bundle.crt and /etc/pki/tls/cert.pem But it is still not working. Any ideas? To configure docker to work with a proxy system

mysql is dead but subsys locked

瘦欲@ 提交于 2019-11-28 20:19:10
问题 I am using PHP-mysql on Linux (RHEL 5.0) For First Time When I tried to connect to MySQL from my PHP Script using mysqli_connect. It Displayed The Following Error: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'(2) After googling for hour I found solution to this as stated here. When I followed that approach and issued command: service mysqld status as a root user I got : mysql is dead but subsys locked Any one know how to solve this and cause of this error ? Also

中标麒麟系统部署http应用除本机外无法访问【解决】

为君一笑 提交于 2019-11-28 19:44:42
现象: 1.关于除了ssh等之后的协议(如tcp协议),中标麒麟的本机能访问,其他机器访问不到; 2.docker部署的应用可以被其他机器访问,物理部署的应用全部不可以访问。 解决 【只采用方法2应用程序服务可以被正常访问】: 1.中标麒麟系统基于红帽系列内核,在启用IPv6协议方面有些问题,同时开启IPv6和IPv4,除ssh等协议,默认只监听IPv6协议,导致外网不能通过IPv4访问。 2. docker默认开启一个firewall的防火墙,需要在public区域放行指定的tcp端口。 添加防火墙策略,放行指定端口:sudo firewall-cmd --zone=public --add-port=12345/tcp --permanent 重新加载FirewallD:sudo firewall-cmd --reload 查看public区域的所有配置:sudo firewall-cmd --zone=public --list-all 来源: https://my.oschina.net/airship/blog/3098732

马哥运维视频笔记-HA Cluster之2 集群的实现和初步使用

别等时光非礼了梦想. 提交于 2019-11-28 19:04:53
HA集群的开源实现方案 Message层: 1、hearbeat:主要有3个版本,v1和v2版与CRM集成在一起,v3版中CRM从heartbeat中独立出去,叫做pacemaker 2、corosync: 3、cman:RedHat研发,属于早期在corosync诞生之前RedHat在自己的企业版Linux系统上提供的解决方案 4、keepalived:上述三者实现方法是基于OpenAIS框架标准,而keepalived自己是基于VRRP协议实现心跳功能,专用于LVS集群 CRM层: 1、haresources:heartbeat v1自带,配置接口:配置文件,文件名为haresources 2、crm:heartbeat v2自带,在各节点运行一个crmd守护进程,监听在TCP 5560端口;配置接口,CLI接口:crmsh,或者GUI接口:hb_gui 3、rgmanager:RedHat研发,早期和cman配合使用,配置接口,配置文件:cluster.conf(xml文件),CLI接口:clustat、cman_tool等;GUI接口:conga(luci+ricci)、system-config-cluster 4、pacemaker:在heartbeat v3版后作为独立项目,可以单独运行或者以插件运行;配置接口,CLI接口:crmsh(Suse研发)、pcs

httpd 443端口为什么只监听在tcp6上

一曲冷凌霜 提交于 2019-11-28 18:45:18
系统redhat7 ,httpd已经启动 [root@rhcsa conf.d]# netstat -tnpl | grep 443 tcp6 0 0 :::443 :::* LISTEN 1229/httpd 为什么如上命令只显示tcp6,而没有tcp ? --------------------------------------------------- 监听了tcp6后,tcp也可以用的。 虽然这个只显示了IPv6的端口监听,但并不代表只接受IPv6的连接,实际上,apache会以mapped address (::FFFF:a.b.c.d) 方式来接受IPv4的连接。除了少部分平台上,例如FreeBSD,NetBSD,OpenBSD之外, Apache在编译时,默认启用了 --enable-v4-mapped 选项。所以,Apache会同时接受IPv6和IPv4的连接请求。 除非是 IPV6_V6ONLY 模式开启,才需要两个不同的socket来分别监听IPv6和IPv4.IPV6_V6ONLY模式可以通过 sysctl net.ipv6.bindv6only 来控制,默认是关闭的。如果你实在愿意在netstat中只看到IPv4端口的监听,那么,你可以修apachezhttp.conf 中,将 Listen 80 修改为 Listen 0.0.0.0:80 具体信息

Docker CE on RHEL - Requires: container-selinux >= 2.9

落花浮王杯 提交于 2019-11-28 16:58:18
I am trying to install Docker CE on RHEL using this link . This is my RHEL version: Red Hat Enterprise Linux Server release 7.3 (Maipo) When I execute this: sudo yum -y install docker-ce I am getting this error: Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I tried using --skip-broken and rpm -Va --nofiles --nodigest but again getting the same error. Please let me know how to resolve this issue and install Docker CE in

RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解(续二)

孤人 提交于 2019-11-28 14:43:15
RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 [日期:2017-05-26] 来源:Linux社区 作者:sound [字体: 大 中 小 ] 由于这里是实验环境,选择启用OEM,不勾选快速闪回 配置统一的密码 在此选择ASM磁盘而非file system,选择创建的ASM磁盘组 实验环境勾选实例 配置SGA、PGA空间大小,配置中文字符集ZHFS16GBK,配置并发连接数,配置专用共享池 在此可配置数据文件大小以及自动扩展、redo log组配置,(实验环境在此不做过多配置) 在此可将数据配置文件等信息导出(方便后续文档撰写) 来源: oschina 链接: https://my.oschina.net/u/2653883/blog/2885206

RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 (续一)

一世执手 提交于 2019-11-28 14:43:02
RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 [日期:2017-05-26] 来源:Linux社区 作者:sound [字体: 大 中 小 ] 配置安装成功 配置安装 Oracle 客户端 [root @rhel6 opt] # su - oracle [oracle @rhel6 ~]$ vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/oracle/ .Xauthority New 'rhel6:2 (oracle)' desktop is rhel6:2 Creating default startup script /home/oracle/ .vnc /xstartup Starting applications specified in /home/oracle/ .vnc /xstartup Log file is /home/oracle/ .vnc /rhel6 :2.log [root @rhel6 opt] # unzip p13390677_112040_Linux-x86-64_1of7.zip [root @rhel6 opt]

RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解(续)

孤街浪徒 提交于 2019-11-28 14:42:46
RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 [日期:2017-05-26] 来源:Linux社区 作者:sound [字体: 大 中 小 ] 配置统一的账户密码 环境变量配置正确的情况下会自动识别用户组 配置安装目录(可手动调整) 检测依赖包等信息后,出现警告(因测试虚拟机内存较少,未能达到 Oracle 推荐值这里可以忽略) 执行所要求的脚本 [root @rhel6 ~] # /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory . Adding read ,write permissions for group. Removing read ,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete. [root @rhel6 ~] # /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following

RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解

一世执手 提交于 2019-11-28 14:42:28
RHEL6.5安装 Oracle 11g + udev + ASM安装部署详解 [日期:2017-05-26] 来源:Linux社区 作者:sound [字体: 大 中 小 ] 最近在学 Oracle 体系结构等理论知识,在这里总结RHEL6.5下安装 Oracle 11g + udev + ASM安装部署流程。 实验环境 RedHat Enterprise Linux 6.5 x86_64 IP地址:192.168.60.100 Oracle 11g release 11.2.0.4 系统安装在此略过,IP地址已经更改完成,首先通过ssh协议登陆到RHEL系统,配置YUM本地源环境,安装Oracle所必须的软件依赖包; [c:\~]$ ssh root@192.168.60.100 [root @rhel6 ~] # vi /etc/yum.conf [ local ] // 修改本地YUM源环境; name= local baseurl= file : ///mnt gpgcheck=0 enabled=1 [root @rhel6 ~] # mount /dev/sr0 /mnt/ //挂载本地光盘作为YUM源; mount : block device /dev/sr0 is write-protected, mounting read -only [root @rhel6