Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

centos

Networking

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.30.0.53
PREFIX=24
GATEWAY=172.30.0.1
IPV4_FAILURE_FATAL=yes
NAME="System eth0"
service network restart

Lamp

yum install php php-mysql
yum install mysql-server

chkconfig httpd --add
chkconfig  httpd  on --level 235
chkconfig  mysqld --add
chkconfig mysqld on --level 235

chkconfig --list mysqld
chkconfig --list httpd

rpm -qa | grep httpd
rpm -qa | grep mysql