RHEL

Unable to start postgresql service on CentOS 7

只谈情不闲聊 提交于 2019-12-03 04:52:12
问题 Unable to start postgresql-9.5 on CentOS 7. I followed this page - https://wiki.postgresql.org/wiki/YUM_Installation - for installing the database server on CentOS. I tried the same after setting setenforce 0 , and that did not help either. I am doing all operations as root . systemctl start postgresql-9.5.service Job for postgresql-9.5.service failed because the control process exited with error code. See "systemctl status postgresql-9.5.service" and "journalctl -xe" for details. And here is

Install ONLY mongo shell, not mongodb

谁都会走 提交于 2019-12-03 04:12:31
As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that from A to run mongodump and mongorestore commands. I tried looking it up on the web but all I got was instructions to install the complete mongodb package. Any help appreciated. PinkFluffyUnicorn Official documentation says that you should be fine installing mongodb-org-shell only. You can follow the official tutorial on installing mongodb , and instead of installing the main package that will install all the packages,

Permanently enable RHEL scl

别等时光非礼了梦想. 提交于 2019-12-03 02:42:47
Is there a way to permanently enable custom Software Collections for RedHat? I have installed an scl to provide python27 in RHEL6 and don't want to have to enable the custom scl every time. Robert Cohen Well, you could add something to your startup script to source the enable script. Eg add to your .bash_profile (note space between initial dot and / ) . /opt/rh/python27/enable This option sounds dangerous to me for root. I would think something like the following would be safer and more appropriate: You can create a function that takes command line options. Think of this as an alias on

RedHat安装yum+配置国内yum源解决redhat需要注册才能更新源

雨燕双飞 提交于 2019-12-03 00:31:56
YUM是Redhat Linux在线安装更新及软件的工具,但是这是RHEL的收费功能,如果没有购买Redhat的服务时不能使用RHEL的更新源的,会提示注册。 在这种情况下,想使用Redhat系统,还想用yum源来在线安装软件,有没有办法? 解决办法: 1.卸载现有的yum # rpm -aq | grep yum|xargs rpm -e --nodeps 下载Centos的yum安装包 http://mirrors.163.com/centos/6/os/x86_64/Packages/ http://mirrors.163.com/centos/6/os/i386/Packages/ 我这里安装的是x86_64的 查看自己版本的方法: cat /etc/redhat-release uname -m 然后下载: x86-64: wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm wget http://mirrors.163.com/centos/6

centos6 mongodb 安装

纵饮孤独 提交于 2019-12-03 00:23:40
centos6 mongodb 安装 1. 下载MongoDB 官网下载地址 https://www.mongodb.com/download-center#community 下载地址 32位 http://dl.mongodb.org/dl/linux/i686 开始下载 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-4.0.1.tgz 2. 开始解压 tar -xvf mongodb-linux-x86_64-rhel62-4.0.1.tgz 3.创建指定的文件夹中并将mongodb复制过去 mv mongodb-linux-x86_64-rhel62-4.0.1 /usr/local/mongodb 4.创建数据库存放目录和日志存放文件 mkdir -p /data/mongo/data touch /data/monogo/dblogs 5.启动MongoDB /usr/local/mongodb/bin/mongod --dbpath=/data/mongo/data --logpath=/data/mongo/dblogs --logappend --fork //--fork 是为了让程序后台执行 6.设置开机自启 echo /usr/local/mongodb/bin

ORA-01804 error while trying to load “Oracle” dbDriver

て烟熏妆下的殇ゞ 提交于 2019-12-02 17:52:40
问题 I'm using ROracle and do the following commands in R: Sys.getenv() drv <- dbDriver("Oracle") And here is the error I obtain after this last line: Error in .oci.Driver(.oci.drv(), interruptible = interruptible, unicode_as_utf8 = unicode_as_utf8, : Error while trying to retrieve text for error ORA-01804 I'm on RStudio Server working on a RHEL 5 server. How could I avoid this error? 回答1: You have to check those 2 points: ORACLE_HOME environment variable must be defined $ORACLE_HOME/lib path must

Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7

爱⌒轻易说出口 提交于 2019-12-02 15:07:59
I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with “yum remove mariadb mariadb-server”, after that I reinstalled it with “yum install mariadb mariadb-server”. Unfortunately, the configuration remains. It seems as if yum remove don’t delete all MariaDB Config-Files. How can I remove MariaDB completely from CentOS 7? These steps are working on CentOS 6.5 so they should work on CentOS 7 too: yum remove mariadb mariadb-server rm -rf /var/lib/mysql If your datadir in /etc/my.cnf points to a

How to install Cargo on a RHEL Linux server?

我们两清 提交于 2019-12-02 13:33:52
I tried installing Cargo on a RHEL server with: curl https://sh.rustup.rs -sSf | sh but after finishing, I get the response: cargo -bash: cargo: command not found Is there a different way to install? First enable the rhel-7-variant-devtools-rpms repository subscription-manager repos --enable rhel-7-varient-devtools-rpms Replace variant with the Red Hat Enterprise Linux system variant ( server or workstation ) Enable the rhel-variant-rhscl-7-rpms repository: subscription-manager repos --enable rhel-variant-rhscl-7-rpms Add the Red Hat Developer Tools key to your system: cd /etc/pki/rpm-gpg wget

ORA-01804 error while trying to load “Oracle” dbDriver

不羁岁月 提交于 2019-12-02 07:37:41
I'm using ROracle and do the following commands in R: Sys.getenv() drv <- dbDriver("Oracle") And here is the error I obtain after this last line: Error in .oci.Driver(.oci.drv(), interruptible = interruptible, unicode_as_utf8 = unicode_as_utf8, : Error while trying to retrieve text for error ORA-01804 I'm on RStudio Server working on a RHEL 5 server. How could I avoid this error? You have to check those 2 points: ORACLE_HOME environment variable must be defined $ORACLE_HOME/lib path must be in LD_LIBRARY_PATH environment variable value For example, if your ORACLE_HOME is /usr/lib/oracle/12.1

AWS自动部署工具codedeploy的部署概述

本小妞迷上赌 提交于 2019-12-02 02:59:31
1)在AWS lambda平台上部署: 三大部分:要部署的内容 --> 部署的配置 --> 更新的lambda函数版本 部署的流程:上传修订的应用程序-->创建一个应用程序-->指定部署组-->指定部署的配置-->指定一个appspec文件-->进行部署-->检查部署结果-->如果出现问题再根据需要重新部署。 2)在AWS ECS 平台上的部署: 部署前提: 在创建codedeploy部署组时,必须指定包含ECS服务的ECS集群; codedeploy必须已经启用ECS服务,默认情况下,ECS部署已启用ECS服务,当创建部署组时需要选择部署ECS集群的ECS服务; 在要随ECS部署一起更新的ECS服务必须使用ELB,可以使用 应用程序负载均衡器 或 Network Load Balancer。官方建议使用 应用程序负载均衡器,以便可以利用动态端口映射和基于路径的路由和优先级规则等功能。在创建 CodeDeploy 应用程序的部署组时,需要指定负载均衡器; 在创建部署组时,您需要指定一个或两个侦听器,侦听器是负载均衡器将流量定向到目标组的。(如果使用ECS控制台创建ECS服务,系统创建侦听器) 一个ECS部署需要2个目标组,一个用于ECS程序的原始任务集,一个用于ECS程序的替换任务集。在部署过程中,codedeploy会创建一个替换的任务集,并将流量替换到新的任务集