LINUX_LAMP安装总结

来源:互联网 发布:java hasmoretokens 编辑:程序博客网 时间:2024/06/07 14:16
    1  cd /root/
    2  ls
    3  cd vmware-tools-distrib/
    4  ls
    5  ./vmware-install.pl
    6  cd /home
    7  cd /
    8  ls
    9  cd /mnt/
   10  ls
   11  cd /cdrom
   12  cd cdrom/
   13  cd media
   14  cd /
   15  cd cdrom/
   16  cd media
   17  ls
   18  ls -a
   19  cd cdrom/
   20  cd /media
   21  ls
   22  umount VMware\ Tools/
   23  cd /usr/local
   24  cd LAMP
   25  ls
   26  cd ..
   27  ls
   28  cd libxml
   29  cd libxml2
   30  ls
   31  cd ..
   32  cd libpng
   33  ls
   34  cd ..
   35  mkdir /usr/local/jpeg6
   36  mkdir /usr/local/jpeg6/bin
   37  mkdir /usr/local/jpeg6/lib
   38  mkdir /usr/local/jpeg6/include
   39  mkdir -p /usr/local/jpeg6/man/man1
   40  cd /lamp/jpeg-6b
   41  cd LAMP
   42  ls
   43  tar -zxvf jpegsrc.v6b.tar.gz
   44  ls
   45  cd /lamp/jpeg-6b
   46  cd /LAMP/jpeg-6b
   47  cd ..
   48  cd /LAMP/jpeg-6b
   49  cd LAMP/jpeg-6b
   50  ./configure --prefix=/usr/local/jpeg6/ --
   51  ./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
   52  make
   53  make install
   54  cd /local
   55  cd local
   56  cd ..
   57  cd ..
   58  ls
   59  cd LAMP
   60  ls
   61  tar -zxvf freetype-2.3.5.tar.gz
   62  cd ..
   63  cd LAMP/freetype-2.3.5
   64  ./configure --prefix=/usr/local/freetype/
   65  make
   66  make install
   67  cd ..
   68  cd ..
   69  ls
   70  cd LAMP
   71  ls
   72  cd ..
   73  cd LAMP/autoconf-2.61
   74  . /configure
   75  ./configure
   76  ./configure
   77  ls
   78  cd ..
   79  ls
   80  tar -zxvf autoconf-2.61.tar.gz
   81  ls
   82  cd autoconf-2.61
   83  ./configure
   84  make
   85  make install
   86  cd ..
   87  cd ..
   88  cd LAMP
   89  ls
   90  tar -zxvf gd-2.0.35.tar.gz
   91  cd gd-2.0.35
   92  ./configure --prefix=/usr/local/gd2/ --with-
   93  jpeg=/usr/local/jpeg6/ --with-
   94  make
   95  make install
   96  cd ..
   97  ls
   98  tar -zxvf httpd-2.2.9.tar.gz
   99  cd httpd-2.2.9
  100  ./configure --prefix=/usr/local/apache2/ --
  101  sysconfdir=/etc/httpd/ --with-included-apr --
  102  disable-userdir --enable-so --enable-
  103  deflate=shared --enable-expires=shared --
  104  enable-rewrite=shared --enable-static-support
  105  ./configure --prefix=/usr/local/apache2/ -- sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable- deflate=shared --enable-expires=shared -- enable-rewrite=shared --enable-static-support
  106  make
  107  ./configure --prefix=/usr/local/apache2/ --
  108  sysconfdir=/etc/httpd/ --with-included-apr --
  109  disable-userdir --enable-so --enable-
  110  deflate=shared --enable-expires=shared --
  111  make
  112  cd ..
  113  ls
  114  tar -zxvf httpd-2.2.9.tar.gz
  115  cd httpd-2.2.9
  116  ./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable- deflate=shared --enable-expires=shared -- enable-rewrite=shared --enable-static-support
  117  ./configure --prefix=/usr/local/apache2/ -- sysconfdir=/etc/httpd/ --with-included-apr -- disable-userdir --enable-so --enable- deflate=shared --enable-expires=shared-- enable-rewrite=shared --enae-static-support
  118  ./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable- deflate=shared --enable-expires=shared -- enable-rewrite=shared --enable-static-support
  119  ./configure --prefix=/usr/local/apache2/ --
  120  sysconfdir=/etc/httpd/ --with-included-apr --
  121  disable-userdir --enable-so --enable-
  122  deflate=shared --enable-expires=shared --
  123  ./configure --prefix=/usr/local/apache2/ --
  124  sysconfdir=/etc/httpd/ --with-included-apr --
  125  disable-userdir --enable-so --enable-
  126  deflate=shared --enable-expires=shared --
  127  enable-rewrite=shared --enable-static-support
  128  clear
  129  cd ..
  130  ls
  131  tar -zxvf httpd-2.2.9.tar.gz
  132  cd httpd-2.2.9
  133  ./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support
  134  make
  135  make install
  136  /usr/local/apache2/bin/apachectl start
  137  echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinit
  138  vi /etc/httpd/httpd.conf
  139  /usr/local/apache2/bin/apachectl start
  140  vi /etc/httpd/httpd.conf
  141  cd /usr/local/apache2
  142  cd htdocs
  143  vi a.html
  144  vi a.php
  145  cd ..
  146  cd ..
  147  cd LAMP
  148  ls
  149  tar -zxvf ncurses-5.6.tar.gz
  150  cd ncurses-5.6
  151  ./configure --with-shared --without-debug --without-ada --enable-overwrite
  152  make
  153  make install
  154  groupadd mysql
  155  useradd -g mysql mysql
  156  cd ..
  157  ls
  158  tar -zxvf mysql-5.0.41.tar.gz
  159  cd mysql-5.0.41
  160  ./configure --prefix=/usr/local/mysql/ --with-extra-charsets=all
  161  make
  162  make install
  163  cp support-files/my-medium.cnf /etc/my.cnf
  164  /usr/local/mysql/bin/mysql_install_db --user=mysql
  165  chown -R root /usr/local/mysql
  166  chown -R mysql /usr/local/mysql/var
  167  chgrp -R mysql /usr/local/mysql
  168  /usr/local/mysql/bin/mysqld_safe  --user=mysql &
  169  cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld
  170  cp /LAMP/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld
  171  cp support-files/mysql.server /etc/rc.d/init.d/mysqld
  172  chown root.root /etc/rc.d/init.d/mysqld
  173  chmod 755 /etc/rc.d/init.d/mysqld
  174  chkconfig --add mysqld
  175  chkconfig --list mysqld
  176  chkconfig --levels 245 mysqld off
  177  cd ..
  178  ls
  179  tar -zxvf php-5.2.6.tar.gz
  180  cd php-5.2.6
  181  ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
  182  make
  183  make install
  184  ifconfig
  185  ifconfig eth0 192.168.52.23 up
  186  init 0
  187  cd /usr/local/LAMP
  188  ls
  189  cd php-5.2.6
  190  ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
  191  make
  192  make install
  193  setenfore 0
  194  setenforce 0
  195  cd /usr/local/lib
  196  ls
  197  ln  -s libltdl.so.3  /lib/libltdl.so.3
  198  ln  -s libltdl.so.3  /usr/lib/libltdl.so.3
  199  cd /LAMP
  200  cd /usr/local/LAMP/
  201  ls
  202  cd php-5.2.6
  203  ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
  204  make
  205  make install
  206  cd /lib
  207  ls libltdl.so.3
  208  ln -s /usr/local/lib/libltdl.so.3.1.0   libltdl.so.3
  209  rm -f libltdl.so.3
  210  ln -s /usr/local/lib/libltdl.so.3.1.0   libltdl.so.3
  211  cd /usr/lib
  212  rm -f libltdl.so.3
  213  ln -s /usr/local/lib/libltdl.so.3.1.0   libltdl.so.3
  214  cd /usr/local/LAMP/php-5.2.6
  215  ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
  216  make
  217  make test
  218  make install
  219  vi /etc/httpd/httpd.conf
  220  cd /usr/local/apache2/bin
  221  ./apachectl stop
  222  ./apachectl start