Questions tagged [centos]

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat.

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat. CentOS aims to be 100% binary compatible with RedHat Enterprise Linux. CentOS mainly changes packages to remove upstream vendor branding and artwork.

Support & Lifecycle

Each CentOS version is maintained for up to 10 years and a new version is released approximately every 2 years.

+----------+-------------- +---------------+---------------------+
|  Version | Release date  |  Full updates | Maintenance updates |
+----------+---------------+---------------+---------------------+
| 3        | 19 March 2004 | 20 July 2006  |31 October 2010      |
| 4        | 9 March 2005  | 31 March 2009 |29 February 2012     |
| 5        | 12 April 2007 | Q1 2014       |31 March 2017        |
| 6        | 10 July 2011  | Q2 2017       |30 November 2020     |
| 7        | 7 July 2014   | Q4 2020       |30 June 2024         |
+----------+---------------+---------------+---------------------+

External Resources:

10670 questions
20
votes
2 answers

ec2 rebooted my instance?

I found out that my CentOS 5 server on EC2 was rebooted, without my command to do so. I did not even log in on the day it was rebooted. When I look at 'last' in linux, it says: jeroen pts/0 128.97....... Thu Apr 7 15:02 - 16:28 (01:25)…
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
20
votes
4 answers

How can I change from prefork to worker MPM on CentOS 64bit?

I'm running CentOS 64 bit, and just found out I am running prefork MPM on my dual quad Xeon. I was told worker will give me lower memory usage and higher performance, since I run a very high traffic website. If this is true, how do I do it?
Andrew Fashion
  • 1,655
  • 7
  • 22
  • 26
20
votes
2 answers

Mount --bind persistence over reboot

I'm having trouble finding an answer for this question Does mount --bind persist over reboot? On my CentOS it looks like it doesn't, so I've placed apropriate mount --bind calls in rc.local. How can I do mount --bind to avoid rc.local scenario?
vnuk
  • 506
  • 1
  • 8
  • 17
20
votes
4 answers

Linux `alternatives --config` without user input

I am writing a RHEL kickstart script, and in my %post, I need to install a JRE. Basically, the current setup involves me needing to manually go in after first boot and set the newly installed JRE as the default using the alternatives --config…
snk
  • 392
  • 3
  • 4
  • 10
19
votes
3 answers

How do I update a system from CentOS 7 to CentOS 8?

Assuming that reinstalling from zero is not practical, how do I perform an update from CentOS 7 to CentOS 8? I tried to do a yum install http://mirror.bytemark.co.uk/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm but…
sorin
  • 8,016
  • 24
  • 79
  • 103
19
votes
3 answers

Should I be worried that yum update suddenly wants to update well over 100 packages on my CentOS 6 system?

I get an email alert whenever there's something to update, and typically do them that day. This tends to happen most days. For whatever reason I've had no alerts since 20th July until today (I believe I did a manual yum update the other day just to…
Codemonkey
  • 1,086
  • 4
  • 19
  • 41
19
votes
2 answers

Increasing ulimit on CentOS

We have a CentOS box that I'm trying to increase the max number of files that a user can have open. Currently when I run ulimit -Sn I get 1024 and ulimit -Hn gives 4096. I need that number up around 6000. In /etc/sysctl.conf I've set fs.file-max =…
nwalke
  • 643
  • 2
  • 12
  • 32
19
votes
4 answers

/dev/null file became regular file

In our production server suddenly /dev/null became a regular file and due to this sshd service got stopped and not able to login the server. And also we tried to the below steps to configure back to character device file, rm -rf /dev/null mknod…
user197719
  • 191
  • 1
  • 4
19
votes
4 answers

Failed to instal APC via pecl install APC

When I try to install APC via pecl install APC-3.1.5 or even pecl install APC I get following error when the package comes to the make command: running: make /bin/sh /var/tmp/pear-build-root/APC-3.1.5/libtool --mode=compile cc -I. -I/var/tmp/APC…
sangoku
  • 191
  • 1
  • 1
  • 3
18
votes
2 answers

How to bypass systemd "start request repeated too quickly"

I'm playing around with CHEF in a CentOS7 VM, and the script failed due to the issue: systemd[1]: start request repeated too quickly for fail2ban.service I know this is configurable in systemd, but I'd just like to know, for testing purposes, if…
qxlab
  • 283
  • 1
  • 2
  • 8
18
votes
4 answers

Monitoring production server

We have 3 dedicated server, splitted in several VPS using openVZ. We're using munin to monitor the VPS with the production sites, and monit on some one of the VPS to make sure it restarts the service when failing. Thing is we need a much better way…
Adam Benayoun
  • 1,138
  • 2
  • 14
  • 26
18
votes
10 answers

Shellshock: How do I know if my server is compromised + suspicious files to look out for

Three questions which I hope someone can help answer: How do I know if my server is already compromised due to the Shellshock bug ? If it was compromised, is there a particular folder where I should look for malicious files? How does a malicious…
Honey Badger
  • 829
  • 3
  • 11
  • 15
18
votes
14 answers

Reasons for missing IP info in `last` output on pts logins?

I have five CentOS 6 linux systems at work, and encountered a rather strange issue that only seems to happen with my userid across all the linux systems I have... This is an example of the problem from entries I excepted from the last…
Mike Pennington
  • 8,305
  • 9
  • 44
  • 87
18
votes
4 answers

cp command prompts on overwrite even with -f

I am trying to copy all newer jpgs from one folder to another using the following command cp -u --force /home/oldfolder/*.jpg /home/newfolder/ and I get the following promt: cp: overwrite `/home/newfolder/4095-181.jpg'? The '-u' I know is working…
icelizard
  • 732
  • 3
  • 10
  • 20
18
votes
1 answer

How can I run Firefox on CentOS with no display?

I'm trying to run Firefox GUI browser on headless CentOS server in order to perform some web testing. I don't need to see the graphical output, because i use Selenium server API to control browser's input and inspect the output. The setup was…
Eric
  • 1,127
  • 3
  • 13
  • 24