tar zvxf httpd-2.2.21.tar.gz -C /usr/src
cd /usr/src/httpd-2.2.21/
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite
make && make install
chown 777 /usr/local/apache/htdocs
vim /usr/local/apache/conf/httpd.conf
ServerName www.jiangwenhui.com:80
DocumentRoot "/usr/local/apache/htdocs"
#
<IfModule dir_module>
DirectoryIndex index.html index.php
cd /usr/local/apache/htdocs/
vim index.php
<?php
phpinfo();
?>
rpm -qa | grep httpd
rpm -e httpd
rpm -e httpd --nodeps
service httpd start
/usr/local/apache/bin/apachectl start
cp -p /usr/local/apache/bin /etc/rc.d/init.d/
cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/
vim /etc/rc.d/init.d/apachectl
#description: apache server
#chkconfig:35 61 61
chkconfig --add apachectl
chkconfig --list apachectl
service apachectl stop && service apachectl start
vim /var/named/chroot/etc/named.conf
cd /var/named/chroot/var/named/
cp -p winsnet.com.zone yy02.com.zone
vim yy02.com.zone
vim winsnet.com.zone
service named restart
nslookup www.winsnet.com
vim /etc/resolv.conf
nslookup www.winsnet.com
nslookup www.yy02.com
vim /usr/local/apache/conf/httpd.conf
vim /usr/local/apache/conf/extra/httpd-vhosts.conf
cd /usr/local/apache/htdocs/
mkdir winsnet yy02
cd winsnet/
touch index.html
vim index.html
cd ../yy02
touch index.html
vim index.html
service apachectl stop && service apachectl start
tar zvxf mysql-5.1.60.tar.gz -C /usr/src
cd /usr/src/mysql-5.1.60/
./configure --prefix=/usr/local/mysql
make && make install
PATH=$PATH:/usr/local/mysql/bin
echo $PATH
mkdir -p /var/run/mysqld
useradd -M -s /sbin/nologin mysql
chown -R mysql /usr/local/mysql/
/usr/local/mysql/bin/mysql_install_db --user=mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql
cp -p /usr/src/mysql-5.1.60/support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod a+x /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig --list mysqld
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
netstat -nultp | grep ":3306"
mysqladmin -u root password ‘123456‘
netstat -nultp
kill 13424
netstat -nultp
service mysqld start
mysql -u root -p
mysqldump -u root -p yy02 > /yy02.bak
ls /yy02.bak
mysql -u root -p
mysql -u root -p yy02 < /yy02.bak
mysql -u root -p
tar zvxf php-5.3.8.tar.gz -C /usr/src/
cd /usr/src/php-5.3.8/
./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php
make && make install
cp -p php.ini-production /usr/local/php/php.ini
vim /usr/local/apache/conf/httpd.conf
AddType application/x-httpd-php .php
cd /usr/local/apache/htdocs/
touch index.php
vim index.php
service apachectl stop
service apachectl start
vim /usr/local/apache/conf/httpd.conf
tar zvxf phpMyAdmin-3.4.9-all-languages.tar.gz -C /usr/local/
mv /usr/local/phpMyAdmin-3.4.9-all-languages/ /usr/local/apache/htdocs/
cd /usr/local/apache/htdocs/
mv phpMyAdmin-3.4.9-all-languages/ phpmyadmin
cd phpmyadmin/
cp config.sample.inc.php config.inc.php
vim config.inc.php
$cfg[‘Servers‘][$i][‘host‘] = ‘127.0.0.1‘;
service apachectl stop
service apachectl start
service mysqld stop
service mysqld start