Category Archives: CentOS

Recommended CentOS

How to Change Time Zone for System Date on CentOS!

Here’s how to change time zone for system date on your CentOS web server:

Go into the directory zoneinfo:

cd /usr/share/zoneinfo

Then find the right zone file for you such as for me Los Angeles is for PST (Pacific Standard Time), which is here:

/usr/share/zoneinfo/America/Los_Angeles

Then simply copy over that file to /etc/localtime like this:

cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

Run the date command:

date

and you should get something like:

Wed Jul 6 16:56:47 PDT 2011

Instead of the othe

Click Here to Read Full Article

Leave a comment

Simple Firewall for CentOS Linux!

For those of you who are getting DoS attacks and whatnot on your CentOS server, you might want to first make sure you have only WWW (port 80) and SSH (port 22) open.

You can do this with iptables (which is pain is the a**) or just use this: yum install system-config-securitylevel Then do: /usr/bin/system-config-securitylevel-tui

And there’s a “Customize” menu where you can set WWW and SSH open.

Click Here to Read Full Article

Leave a comment