Questions tagged [redhat]

For issues relating to Red Hat platforms, products, and/or services.

Red Hat, Inc. is a company in the free and open source software sector, and a major Linux distribution vendor. Red Hat has become associated to a large extent with its enterprise operating system Red Hat Enterprise Linux () and with the acquisition of open-source enterprise middleware vendor . Red Hat provides operating-system platforms along with middleware, applications, and management products, as well as support, training, and consulting services.

For questions on a specific Red Hat products, consider using the tag for that product.

Community

Red Hat was acquired by IBM in July 2019.

3924 questions
50
votes
8 answers

install Docker CE 17.03 on RHEL7

Is it possible to install DockerCE in the specific version 17.03 on RHEL7 ? There is information here: https://docs.docker.com/engine/installation/linux/rhel/#install-using-the-repository about the installing Docker on RHEL but there is no version…
user3313834
  • 7,327
  • 12
  • 56
  • 99
48
votes
4 answers

Docker load and save: "archive/tar: invalid tar header"

I'm trying to import a Docker image into Docker on AWS Red Hat Linux (3.10.0-514.el7.x86_64) and am having problems with the error; Error processing tar file(exit status 1): archive/tar: invalid tar header This same image works fine on my local…
bicster
  • 740
  • 3
  • 9
  • 18
43
votes
8 answers

MySQL config file location - redhat linux server

What is the default location for the MySQL configuration file on a redhat linux box?
user42931
  • 1,135
  • 2
  • 10
  • 12
42
votes
6 answers

How do I clone an OpenLDAP database

I know this is more like a serverfault question than a stackoverflow question, but since serverfault isn't up yet, here I go: I'm supposed to move an application from one redhat server to another, and without very good knowledge of the internal…
elzapp
  • 1,961
  • 4
  • 15
  • 22
41
votes
3 answers

Cannot overwrite Symbolic Link RedHat Linux

I have created a symbolic link: sudo ln -s /some/dir new_dir Now I want to overwrite the symbolic link to point to a new location and it will not overwrite. I have tried: sudo ln -f -s /other/dir new_dir I can always sudo rm new_dir, but I would…
Chuck Burgess
  • 11,600
  • 5
  • 41
  • 74
39
votes
11 answers

Logrotate files with date in the file name

I am trying to configure logrotate in RHEL for tomcat6 logs. Currently, logrotate works fine for catalina.out log, it is rotated and compressed properly. The problem is with the files with date in them…
Noman Amir
  • 933
  • 3
  • 15
  • 30
38
votes
2 answers

Segfault on declaring a variable of type vector>

Code Here is the program that gives the segfault. #include #include #include int main() { std::cout << "Hello World" << std::endl; std::vector> y {}; std::cout << "Hello World" <<…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
33
votes
4 answers

How to confirm RedHat Enterprise Linux version?

I am a bit confused by the fact that although I installed RHEL 5.1 from DVD (RedHat/5.1.x86_64), when I issue command: cat /etc/redhat-release I got: Red Hat Enterprise Linux Server release 5.5 (Tikanga) What does this mean? is this to be the…
Michael Mao
  • 9,878
  • 23
  • 75
  • 91
31
votes
2 answers

python sys.exit not working in try

Python 2.7.5 (default, Feb 26 2014, 13:43:17) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> try: ... sys.exit() ... except: ... print "in except" ... in…
onlyvinish
  • 435
  • 1
  • 5
  • 20
30
votes
2 answers

How to reduce the size of RHEL/Centos/Fedora Docker image

The base image from Red Hat is quite small, on the order of 196M for RHEL 7.4. However it tends to be missing a lot of the bits and pieces that are required by the products I want to build new images for. The moment I do a "yum install Xxx" on top…
TJA
  • 2,969
  • 2
  • 25
  • 32
30
votes
2 answers

import self signed certificate in redhat

How can I import a self-signed certificate in Red-Hat Linux. I'm not an expert with respect to certificates and find it difficult to find the right answer through googling, since I don't know the difference between a .cer, .crt or a .pem. Having…
atomcoffee
  • 301
  • 1
  • 3
  • 4
30
votes
9 answers

Change JENKINS_HOME on Red Hat Linux?

I used this procedure to install Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions After it was up and running I discovered the /var/lib/jenkins partition on my server is very small. I want to move…
Dilbertina
  • 353
  • 2
  • 4
  • 6
30
votes
12 answers

jps not working

I have installed java-1.6.0-openjdk-devel. $java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) when typing jps into command…
Phelodas
  • 3,853
  • 5
  • 25
  • 30
29
votes
2 answers

TCP: Server sends [RST, ACK] immediately after receiving [SYN] from Client

Host_A tries to send some data to Host_B over TCP. Host_B is listening on port 8181. Both Host_A & Host_B are Linux boxes (Red Hat Enterprise). The TCP layer is implemented using Java NIO API. Whatever Host_A sends, Host_B is unable to receive.…
Riyaz
  • 646
  • 2
  • 11
  • 15
28
votes
10 answers

How to change the mysql root password

I have installed MySQL server 5 on redhat linux. I can't login as root so I can't change the root password. mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) When I try…
yossi
  • 12,945
  • 28
  • 84
  • 110