Questions tagged [rhel]

Red Hat Enterprise Linux (RHEL) is a distribution of the Linux operating system targeted at enterprise customers with emphasis on long-term stability and support.

Other support resources

Questions related to installing and running Red Hat Enterprise Linux are usually more on-topic on these sister sites:

Customers can file support cases in the customer portal.

1780 questions
281
votes
10 answers

How to redirect output of systemd service to a file

I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir…
meallhour
  • 13,921
  • 21
  • 60
  • 117
238
votes
15 answers

How do you scroll up/down on the console of a Linux VM

I recognize that Up/Down will give you the command history. But, how do you look at past output by scrolling up and down? I have used Shift+Page Up/Page Down, Alt+Shift+Up/Down and Page Up/Page Down but none of these seem to work. It is a Redhat…
Jane Doh
  • 2,883
  • 3
  • 15
  • 17
153
votes
19 answers

Installing Python 3 on RHEL

I'm trying to install python3 on RHEL using the following steps: yum search python3 Which returned No matches found for: python3 Followed by: yum search python None of the search results contained python3. What should I try next?
Chander Shivdasani
  • 9,878
  • 20
  • 76
  • 107
142
votes
8 answers

Best practice to run Linux service as a different user

Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d. What do you think is the best way to instead have the processes run as a…
James Brady
  • 27,032
  • 8
  • 51
  • 59
95
votes
21 answers

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

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:…
user182944
  • 7,897
  • 33
  • 108
  • 174
81
votes
18 answers

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or…
Bad Programmer
  • 3,642
  • 13
  • 46
  • 53
78
votes
2 answers

Hourly rotation of files using logrotate?

I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf /tmp/hr_logs { daily rotate…
Kishore
  • 901
  • 1
  • 6
  • 4
71
votes
3 answers

Error when using scp command "bash: scp: command not found"

I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost…
Rivers Yang
  • 721
  • 1
  • 5
  • 4
62
votes
6 answers

Install ONLY mongo shell, not mongodb

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…
Rijumone
  • 772
  • 1
  • 6
  • 13
61
votes
3 answers

Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7

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…
Stack Over
  • 751
  • 2
  • 6
  • 7
60
votes
11 answers

On linux SUSE or RedHat, how do I load Python 2.7

Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get…
Dag
  • 1,101
  • 4
  • 11
  • 13
44
votes
2 answers

Suppressing the "Picked up _JAVA_OPTIONS" message

I'm using _JAVA_OPTIONS to set some defaults for Java on RHEL. It works fine but now every time I start java I get the following message Picked up _JAVA_OPTIONS: -foo -bar -baz is it possible to keep the options but suppress the display of this…
Carcophan
  • 1,508
  • 2
  • 18
  • 38
40
votes
3 answers

The command '/bin/sh -c returned a non-zero code: 127

I'm new to docker so I might be doing this wrong, but I'm trying to install Tomcat6 through a Dockerfile which like this: FROM rhel7:latest RUN cd /tmp RUN "wget",…
user5201726
  • 542
  • 1
  • 5
  • 13
40
votes
3 answers

Check RPM dependencies

When you are installing a program using .deb packages on Ubuntu, you can check dependencies of package using Ubuntu Packages Search. For example I can see dependencies of Wireshark from here. As you can see, dependencies marked by red bullet. If you…
SuB
  • 2,250
  • 3
  • 22
  • 37
39
votes
6 answers

How to run a command as a specific user in an init script?

I'm writing an init script which is supposed to execute a single command as a user different than root. This is how I'm doing it currently: sudo -u username command This generally works as expected on Ubuntu/Debian, but on RHEL the script which is…
ddario
  • 1,015
  • 3
  • 12
  • 25
1
2 3
99 100