Strictly Programming

Centos 5.0 Notes

Posted in Centos by sqllyw on 12/08/2008


Centos Wiki
Good tips
Setting up LAMP server
yum install httpd php-mysql mysql-server

Note: Apache/Mysql are not started automatically:
apachectl start
/etc/init.d/mysqld start

Opening a port
sudo vi /etc/sysconfig/iptables
duplicate the line for port 22, change port number to 80(or whatever port number you need)

sudo iptables -F	

iptable tutorial
Setting up Java in Centos 5
Link
Add a new user
adduser myname
passwd myname
Note: to add a user to a group, use useradd
Add a user to a grou
grep developers /etc/group // looks in the group file if developers defined
id tony // displays groups tony belongs to
usermod -a -G developers tony
usermod -a -G admin tony // all admin user in Ubuntu are sudoers
More info here
Add user to sudoer’s list
/usr/sbin/visudo

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s