Questions tagged [centos6]

CentOS was an Linux distribution standing for "Community ENTerprise Operating System" based on "Red Hat Enterprise Linux" (RHEL). The "CentOS6" tag refers to versions 6.x of CentOS. CentOS 6 was released on November 27, 2011 and reached End Of Life on November 30, 2020.

CentOS was an Linux distribution standing for "Community ENTerprise Operating System" based on "Red Hat Enterprise Linux" (RHEL). The "CentOS6" tag refers to versions 6.x of CentOS. CentOS 6 was released on November 27, 2011 and reached End Of Life on November 30, 2020.

1780 questions
26
votes
2 answers

How to kill a process that never dies?

Problem I have java process which does not die neither with SIGTERM nor SIGKILL. logstash 2591 1 99 13:22 ? 00:01:46 /usr/bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75…
Yu Watanabe
  • 616
  • 2
  • 8
  • 18
25
votes
2 answers

How to uninstall git installed from the source?

I installed the git using this article. Now I want to uninstall the git. How to do it?
Mikhail
  • 549
  • 1
  • 4
  • 10
22
votes
3 answers

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it's rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum Can this seamlessly replaces the current PHP…
Vicary
  • 333
  • 1
  • 2
  • 8
21
votes
2 answers

How do I view the contents of a SELinux policy package

As the title says, how do I view the contents of a SELinux policy package? The resulting files end with .pp. I'm running on centos 6, but I guess it's the same way on "all" distros. For example cp /usr/share/selinux/targeted/cobbler.pp.bz2 ~ …
Arlukin
  • 1,203
  • 6
  • 18
  • 27
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
18
votes
1 answer

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some preliminary results. Environment is RHEL 6.6 or…
Steve Amerige
  • 433
  • 2
  • 5
  • 12
18
votes
3 answers

How do you set a DATE variable to use in a log for crontab output?

I was playing aroudn with some variations of date like DATE = $(date) but that didnt work either crontab -e CRONLOG=/tmp/log/crontab.log DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S` * * * * * echo $DATEVAR >> /tmp/log/crontab.log */2 * * * * echo…
qodeninja
  • 2,753
  • 10
  • 32
  • 33
18
votes
11 answers

CentOS 6 and locale error

I just installed CentOS 6 and whenever I login to the system via SSH remotely, I get the following error: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) When I type "locale" on the command line, I get the following…
Cem
  • 543
  • 3
  • 6
  • 14
18
votes
6 answers

Cannot access port 80 from remote location but works on local?

I have a linux server on configuration with apache. However I cannot get access to it using a remote computer. I can ssh to the server normally. my IP table: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT …
DucDigital
  • 1,491
  • 3
  • 18
  • 26
18
votes
3 answers

CentOS 6 and upstart

The new CentOS 6 comes with Upstart, replacing init. I am trying to convert an /etc/inittab file to the new upstart format. This particular server only has 15 or so inittab entries, however, other servers have >30. We are mainly wanting the…
Brian
  • 1,233
  • 2
  • 14
  • 25
16
votes
3 answers

Unable to change vm.max_map_count for elasticsearch

Prehistory I have elasticsearch and SugarCRM7 running on CentOS 6.5. Every day I face the same problem: java outOfMemory error. That happens because of small vm.max_map_count value, 65530 only when 262144 is recommended. Problem The problem is that…
Valentina
  • 161
  • 1
  • 1
  • 3
15
votes
5 answers

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm sudo yum -y --enablerepo=remi,remi-test install…
mbalparda
  • 263
  • 1
  • 2
  • 8
15
votes
4 answers

In CentOS 6.x, how can I upgrade to Kernel 3.4?

I have a server running CentOS 6.2 with kernel version 2.6.32, but I need to increase my application Performance. The Kernel Version 3.4 has x32abi which can improve the performance so i want to upgrade to 3.4 ? Is it possible? I tried downloading…
shiva
  • 147
  • 1
  • 1
  • 3
14
votes
2 answers

HP DL380p Gen8 (p420i controller) I/O oddity on XFS partitions

On DL380p gen8 servers using XFS on top of LVM on top of raid 1+0 with 6 disks, an identical workload results in a ten-fold increase in disk writes on RHEL 6 compared to RHEL 5, making applications unusable. Note that I'm not looking at optimizing…
Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70
14
votes
1 answer

What is the correct way of getting crontab on CentOS 6?

I have a server running CentOS 6.2 minimal, but it doesn't appear to have crontab installed by default? crontab -e -bash: crontab: command not found In searching google, I found references to a "vixie-cron" and "anacronda" but no complete answer on…
Nick
  • 4,503
  • 29
  • 69
  • 97