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
27
votes
12 answers

SCP copy windows local file to linux remote folder

How to get a file from my path d:/test.txt and copy it to /etc/var/test/test.txt? I've tried this: scp d:/test.txt /etc/var/test/test.txt but that didn't work. How do I set the hard disk from where I copy my files?
user3414354
  • 371
  • 1
  • 3
  • 3
27
votes
3 answers

Allowing FTP with IPTables

My current scenario involves allowing various rules, but I need ftp to be accessible from anywhere. The OS is Cent 5 and I am using VSFTPD. I can't seem to get the syntax correct. All other rules work correctly. ## Filter all previous…
IOTAMAN
  • 665
  • 2
  • 8
  • 13
26
votes
3 answers

Permanently enable a SCL

Is there a way that I can permanently enable a SCL? I've installed rh-php56, and I would like to make sure that it is loaded every time I ssh into my machine. I am currently running CentOS 7.
Odyss3us
  • 375
  • 1
  • 3
  • 8
26
votes
4 answers

NFS poor write performance

I have two machines connected with 10Gbit Ethernet. Let one of them be NFS server and another will be NFs client. Testing network speed over TCP with iperf shows ~9.8 Gbit/s throughput in both directions, so network is OK. Testing NFS server's disk…
Sergey
  • 611
  • 2
  • 6
  • 11
26
votes
5 answers

I can't delete files 'rm: cannot remove X Read-only file system'

I am trying to remove an rdiff backup folder as some problems occured during the backup and need to remove it's history and try again. However, when I run: rm -r -f rdiff-backup-data I get the following on some of the files: rm: cannot remove `X':…
David
  • 841
  • 3
  • 14
  • 31
26
votes
3 answers

How can I get user name by user ID?

In my FTP client I can see files' owner ID (99). How do I find out which user is the owner of these files?
Mohammad Ali Akbari
  • 1,763
  • 5
  • 20
  • 24
26
votes
2 answers

How to configure cron job to run every 2 days at 11PM

I have a centos server and I want to run a job on it at 11PM every 2 days, how do I do that?
fred basset
  • 665
  • 2
  • 7
  • 14
25
votes
1 answer

Supervisord - ini file error on CentOS

I installed Supervisor on CentOS 6.5 and currently experiencing some weird error that I can't seem to fix. I created a supervisord.conf file in /etc directory and call supervisor like this: $ supervisord -c /etc/supervisord.conf Which looks pretty…
nogias
  • 347
  • 1
  • 3
  • 6
25
votes
8 answers

How to persist ethtool settings through reboot

I would like to turn off tcp segmentation offload on a CentOS5 server. Using ethtool the command is ethtool -K eth0 tso off However, this setting only persists for this session. How can I make it persist through reboots?
Gus E
  • 571
  • 2
  • 5
  • 10
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
25
votes
3 answers

Why is the chroot_local_user of vsftpd insecure?

I'm setting up on my VPS a vsftpd, and i don't want users be allowed to leave they're ftp home directory. I'm using local_user ftp, not anonymous, so I added: chroot_local_user=YES I've read in a lot of forum post, that this is unsecure. Why is…
p1100i
  • 579
  • 2
  • 7
  • 15
25
votes
2 answers

Opening up port 8080 in CentOS

I'm new to opening up ports in CentOS. I need to open up tcp port 8080 and have installed/ran nmap to find it is not open already. I've been reading about the iptables command, I have v1.3.5 installed but I really don't know where to start with it…
user1062058
  • 505
  • 2
  • 10
  • 17
25
votes
5 answers

How to backup a full Centos Server?

I switched a few weeks ago from a dedicated server to a VPS. Now that everything is working well on the VPS I would like to shutdown the dedicated server and close my account with the hosting company. For peace of mind and in order to be more safe I…
benjisail
  • 1,331
  • 5
  • 19
  • 32
24
votes
1 answer

How to find out yum package names

Recently I needed to install yum mbstring but because I have two different versions of PHP installed I needed to install mbstring for php 5.5. Through some random google searches I figured out to run: yum install php55-php-mbstring.x86_64 Is there…
keeg
  • 459
  • 2
  • 6
  • 11
24
votes
3 answers

Installing Fedora RPMs in CentOS

How safe is it to install Fedora RPMs in CentOS 5? Does it depend on the version of the Fedora RPM or is it generally better to steer clear?
Lin
  • 2,909
  • 7
  • 27
  • 25