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
Lamp Deployment Commands