How to install Install rabbitmq server on centos7 - rabbitmq

I tried to follow this link on stackoverflow install rabbitmq-server but it is not working. Getting error No package rabbitmq-server-3.3.4-1.noarch.rpm available.
wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
yum install erlang
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server-3.3.5-1.noarch.rpm
Getting error
[vagrant#localhost ~]$ sudo yum install rabbitmq-server-3.3.4-1.noarch.rpm
Loaded plugins: fastestmirror
http://repos.fedorapeople.org/repos/peter/erlang/epel-7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: epel.mirror.net.in
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
No package rabbitmq-server-3.3.4-1.noarch.rpm available.
Error: Nothing to do

You need to use either of below two commands
yum localinstall rabbitmq-server-3.3.4-1.noarch.rpm
or
rpm -Uvh rabbitmq-server-3.3.4-1.noarch.rpm
where -U to update if package is already installed,
-v for verbose output,
-h to print hash output

Related

Difficulties in installing Qlik Catalog related SW

I am installing Qlik Catalog SW on Linux Read Hat Enterprise 7.9 following the instructions of the installation guide.
I have got the first problem in Tomcat Installation. Basically, I am not able to connect to Tomcat with the browser.
Below is a detailed list of commands I have used.
I have tried it using Firefox.
When trying to install Chrome I got other issues.
Any hints?
*** Installing Chrome ***
# sudo yum install glib
# sudo yum list glibc
# sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
# sudo yum -y install redhat-lsb libXScrnSaver
# sudo yum -y localinstall google-chrome-stable_current_x86_64.rpm
>>>>>>>>>>>>>>>>>>>>>>>
Error: Package: google-chrome-stable-95.0.4638.54-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libc.so.6(GLIBC_2.18)(64bit)
<<<<<<<<<<<<<<<<<<<<<<<
*** Installing Tomcat ***
Install wget (if not already installed):
# sudo yum install -y wget
Become the service account user:
# sudo su - qdcuser
Download Apache Tomcat and extract the file in usr/local/qdc:
$ cd /usr/local/qdc
$ wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.38/bin/apache-tomcat-9.0.38.tar.gz
$ tar -xvf apache-tomcat-9.0.38.tar.gz
Overwrite <tomcat home>/conf/server.xml with the version expanded from the Qlik Catalog zip file:
$ cp /tmp/podium/config/tomcat9-server.xml /usr/local/qdc/apache-tomcat-9.0.38/conf/server.xml
Opening ports 8080 and 8443:
# sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
# sudo firewall-cmd --zone=public --permanent --add-port=8443/tcp
# sudo systemctl restart firewalld.service
Setup Apache Tomcat as a service to automatically start when Linux restarts:
# sudo cp /tmp/podium/config/tomcat.service /etc/systemd/system/
# sudo systemctl daemon-reload
# sudo systemctl enable tomcat.service
Edit the file /etc/systemd/system/tomcat.service to insert the correct user and group names:
# sudo nano /etc/systemd/system/tomcat.service
User=qdcuser
Group=qdcgroup
Start Tomcat manually:
$ cd /usr/local/qdc/apache-tomcat-9.0.38
$ ./bin/startup.sh
Browse to the following URL to verify that Tomcat is running:
https://localhost:8443
>>>>>>>>>>>>>>>>>>>>
Unable to connect
Firefox can’t establish a connection to the server at localhost:8443.
<<<<<<<<<<<<<<<<<<<<<
I too see this issue.. Here is what I think the reason might be..
rpm -qf /usr/lib64/libc.so.6
glibc-2.17-325.el7_9.x86_64
glibc is 2.17 on RHEL 7.9 The developers at google should know this which means it is a bug.
Or. They should provide that library as part of their package and statically link it.
Short answer. For now, until Google figures it out and fixes, I might either remove the package, or skip that package.
To skip..
sudo yum -y update --exclude google-chrome-stable*
To remove... Well.. "sudo yum -y remove google-chrome-stable"
An alternative until google resolve the problem is:
sudo yum update --skip-broken
This can install all updates and ignore chrome

building singularity image for python script in centOS linux

I am trying to build singularity image in centOS linux. to do so I have make the following Singularity.recipe:
Bootstrap: yum
OSVersion: 7
MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/x86_64/
Include: yum
%post
yum -y install epel-release
yum -y install python34
%file
QC.py /
%runscript
python3 /QC.py
and then I used this command to build the image:
sudo singularity build test.simg Singularity.recipe
but I gave this error:
FATAL: Unable to build from Singularity.recipe: while parsing definition: Singularity.recipe: invalid section(s) specified: file
do you know how to solve the problem?
As the error message says, %file is not a valid section name. The correct section name is %files.

No package httpd available using yum on CentOs 7

When I try:
yum install httpd
I get the error:
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cloud.aliyuncs.com
* extras: mirrors.cloud.aliyuncs.com
* updates: mirrors.cloud.aliyuncs.com
No package httpd available.
Error: Nothing to do
enter image description here
httpd package can be installed from default CentOS repositories, 'base' and 'updates' (for a newer version).
# repoquery -i httpd | grep -i repo
Repository : updates
Make sure that you have repository file /etc/yum.repos.d/CentOS-Base.repo or create it manually, with, at very least, the following content:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
gpgcheck=0
enabled=1
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
gpgcheck=0
enabled=1
Then do:
# yum clean all && yum update -y && yum install httpd -y
We ran into this issue as well and found the following in yum.conf:
exclude=httpd nginx php mysql mairadb python-psutil python2-psutil
Removing httpd from there let us install it

Travis CI + NuGet yields Invalid certificate error

I'm trying to use NuGet on Travis.
- sudo apt-get -qq -y update
- sudo apt-get -qq -y install mono-complete gtk-sharp2
- wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- mono ./nuget.exe install ILMerge -Version 2.14.1208
Unfortunately, I get the following error:
https://api.nuget.org/v3/index.json
Attempting to gather dependency information for package 'ILMerge.2.14.1208' with respect to project '/home/travis/build/craftr-build/craftr/build/.nuget-artifacts', targeting 'Any,Version=v0.0'
Invalid certificate received from server. Error code: 0xffffffff800b0109
I have tried various recommendations from what I found on Google, for example using the following before trying to use NuGet:
- mozroots --import --sync
- yes | certmgr -ssl -m https://go.microsoft.com
- yes | certmgr -ssl -m https://nugetgallery.blob.core.windows.net
- yes | certmgr -ssl -m https://nuget.org
Unfortunately the mozroot command gives
Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
Couldn't retrieve the file using the supplied information.
Leaving out the mozroots command gives the same NuGet error.
How can I get NuGet to work on Travis?
I just used the APT Addon now. I found the sourcelinse and key_urls in another Mono project here
addons:
apt:
sources:
- sourceline: deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main
key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF
- sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main
key_url: https://packages.microsoft.com/keys/microsoft.asc
- packages:
packages:
- mono-devel
- ca-certificates-mono

Install mono on Centos7

I use this steps to install mono on Centos7 and it worked for me for days.
mkdir /mono
wget http://download.mono-project.com/repo/xamarin.gpg -P /mono
rpm --import /mono/xamarin.gpg
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum install -y mono-complete
And now it keeps failing and can't install mono:
failure: repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2 from download.mono-project.com_repo_centos_: [Errno 256] No more mirrors to try.
http://download.mono-project.com/repo/centos/repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Is there a problem with the repository right now? Or should i install it from a different source?
It's a Centos7 host running on Azure in the North Europe region.
Just follow the steps below to install mono done
yum-config-manager --add-repo http://download.mono-project.com/repo/centos-beta/
yum repolist
and finally
yum install -y mono-complete
Install Mono