In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
On RedHat 7.2, assume that all installation packages are under / pub, and the source packages are indicated in red
Suppose you do all of the following under the telnet or ssh text interface.
1. Install
Target=_blank > J2SDK 1.4
1. Download j2sdk-1_4_0-linux-i386-rpm.bin, the Linux RPM version of J2SDK1.4
2. Cd / pub
3. Chmod + x j2sdk-1_4_0-linux-i386-rpm.bin
4.. / j2sdk-1_4_0-linux-i386-rpm.bin
5. Rpm-ivh j2sdk-1_4_0-fcs-linux-i386.rpm
6. Add the following content to vi / etc/profile:
JAVA_HOME=/usr/java/j2sdk1.4.0
Export JAVA_HOME
CLASSPATH=/usr/java/j2sdk1.4.0/lib:/usr/java/j2sdk1.4.0/jre/lib
Export CLASSPATH
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
Export PATH
7. Log in again to allow the environment variable to take effect
2. Install
Target=_blank > Tomcat 4.0
1. Download the linux binary version of Tomcat and mod_webapp.so
2. Tar zxvf jakarta-tomcat-4.0.3.tar.gz
3. Do other related configurations in server.xml under the / pub/jakarta-tomcat-4.0.3/conf directory
(it's OK not to do it for the time being)
4. / pub/jakarta-tomcat-4.0.3/bin/startup.sh
Start the Tomcat service and add it to the system's launcher / etc/rc.d/rc.local
(use / pub/jakarta-tomcat-4.0.3/bin/shutdown.sh
Stop Tomcat)
3. Install
Target=_blank > MySQL
1. Groupadd mysql
2. Useradd-g mysql mysql
3. Tar zxvf mysql-3.23.49.tar.gz
(or, gunzip
< mysql-3.23.49.tar.gz | tar xvf -) 4. cd mysql-3.23.49 5. ./configure --prefix=/usr/local/mysql 6. make 7. make install 8. scripts/mysql_install_db 9. chown -R root /usr/local/mysql 10. chown -R mysql /usr/local/mysql/var 11. chgrp -R mysql /usr/local/mysql 12. cp support-files/my-medium.cnf /etc/my.cnf 13. cp scripts /usr/local/mysql -R 14. cp support-files /usr/local/mysql -R 15. cd /usr/local/mysql 16. chmod +x support-files/mysql.server 17. cp support-files/mysql.server /etc/rc.d/init.d/mysqld 同时要设置 /etc/rc.d/init.d/mysqld 开机自动运行: ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S99mysqld 18. /etc/rc.d/init.d/mysqld start 启动 MySQL 19. /usr/local/mysql/bin/mysqladmin -u root password ew-password 设置 MySQL root 口令 4. Install target=_blank>OpenSSL
1. Cd / pub
2. Tar zxvf openssl-0.9.6b.tar.gz
3. Cd openssl-0.9.6b
4.. / config
5. Make
6. Make test
7. Make install
5. Install
Target=_blank > mod_ssl
1. Cd / pub
2. Tar zxvf mod_ssl-2.8.8-1.3.24.tar.gz
3. Tar zxvf apache_1.3.24.tar.gz
(from www.apache.org)
4. Cd mod_ssl-2.8.8-1.3.24
5. / configure-- with-apache=../apache_1.3.24
6. Cd.. / apache_1.3.24
7. / configure-- prefix=/www
6. Install
Href= "ftp://ftp.cac.washington.edu/imap/" target=_blank > IMAP support
1. Cd / pub
2. Tar zxvf imap-2001a.tar.Z
3. Cd imap-2001a
4. Make slx (for Linux)
5. Modify / etc/services registration port, modify / etc/inetd.conf to enable service
6. Cp c-client/c-client.a / usr/local/lib/libc-client.a
7. Cp c-client/rfc822.h / usr/local/include
8. Cp c-client/mail.h / usr/local/include
9. Cp c-client/linkage.h / usr/local/include
7. Install
Target=_blank > CURL support
1. Cd / pub
2. Tar zxvf curl-7.9.6.tar.gz
3. Cd curl-7.9.6
4. / configure-with-ssl-with-prefix=/usr/local/curl
5. Make
6. Make test
7. Make install
8. Install
Target=_blank > GD support
1. Install
Target=_blank > zlib support
1. Cd / pub
2. Tar zxvf zlib-1.1.3.tar.gz
3. Cd zlib-1.1.3
4.. / configure
5. Make
6. Make test
7. Make install
2. Install
Target=_blank > libpng support
1. Cd / pub
2. Tar zxvf libpng-1.0.10.tar.gz
3. Cd libpng-1.0.10
4. Cp scripts/makefile.linux makefile
5. Vi makefile
Modify it
ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
Parameters.
6. Make test
7. Make install
3. Install jpeg-6b
Support
1. Cd / pub
2. Tar zxvf jpegsrc.v6b.tar.gz
3. Cd jpeg-6b
4.. / configure
5. Make
6. Make test
7. Make install
8. Make install-lib
4. Install FreeType
2.0.1 support
1. Cd / pub
2. Tar zxvf freetype-2.0.1.tar.gz
3. Cd freetype-2.0.1
4. Make setup
5. Make
6. Make install
5. Install GD
Support
1. Cd / pub
2. Tar zxvf gd-1.8.4.tar.gz
3. Cd gd-1.8.4
4. Vi Makefile
Modify it
CFLAGS=-O-DHAVE_LIBPNG-DHAVE_LIBJPEG-DHAVE_LIBFREETYPE
LIBS=-lgd-lpng-lz-ljpeg-lfreetype-lm
INCLUDEDIRS=-I. -I/usr/local/include/freetype2-I/usr/include/X11
-I/usr/X11R6/include/X11-I/usr/local/include
5. Make
6. Make install
9. Install
Target=_blank > PHP
1. Cd / pub
2. Tar zxvf php-4.2.0.tar.gz
3. Cd php-4.2.0
4.
CFLAGS=-O2-I/usr/local/ssl/include
. / configure-- with-apache=../apache_1.3.24
-- enable-memory-limit=yes
-with-config-file-path=/usr/local/lib-with-imap-enable-ftp
-- with-mysql=/usr/local/mysql
-enable-sockets-enable-debug=no-enable-track-vars
-- with-gd=/usr/local
-with-jpeg-dir=/usr/local-with-png-dir=/usr/local
-- with-curl=/usr/local/curl
-with-zlib-with-ttf-with-java
5. Make
6. Make install
7. Cp php.ini-dist / usr/local/lib/php.ini
8. Modify / usr/local/lib/php.ini
10.
Install
Target=_blank > Zend Optimizer (this can be done at the end)
1. Cd / pub
2. Tar zxvf ZendOptimizer-1 [1] .2.0-PHP_4.1.0-Linux_glibc21-i386.tar.gz
3. Cd ZendOptimizer-1.2.0-PHP_4.1.0-Linux_glibc21-i386
4. Mkdir / usr/local/Zend
5. Mkdir / usr/local/Zend/lib
6.. / install.sh
11. Install
Target=_blank > Zend Cache (for version 4.0.5 or lower of PHP, you need a registration code, which can be completed at the end)
1. Cd / pub
2. Tar zxvf ZendCache-1 [1]. 1.0b-PHP_4.0.5-Linux_glibc2.1-i386.tar.gz
3. Cd ZendCache-1.1.0b-PHP_4.0.5-Linux_glibc2.1-i386
4. Cp data/ZendCache.so / usr/local/Zend/lib
5. (cp zend_cache.dat / usr/local/Zend) / / to register
License
6. Add the following lines to your php.ini file
Do not add any extra spaces or tabs; must after Zend Optimizer configuration:
Zend_cache.use_cwd=1
Zend_cache.memory_consumption=16; 16MB
Zend_cache.validate_timestamps=1
Zend_extension= "/ usr/local/Zend/lib/ZendCache.so"
12. Install Zend
Accelerator (above php 4.0.5 and below php 4.2.0, registration code is required. This step can be completed at the end)
1. Cd / pub
2. Tar xvf ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i386.tar
3. Cd ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i386
4.. / install.sh
13. Install Apache
1. Cd.. / apache_1.3.24
two。
SSL_BASE=/usr/local/ssl. / configure
-prefix=/www-enable-module=ssl-enable-module=so
-- activate-module=src/modules/php4/libphp4.a
-enable-rule=SSL_SDBM-enable-module=rewrite
3. Make
4. Make certificate
5. Make install
6. Modify / www/conf/httpd.conf
Options Indexes FollowSymLinks MultiViews-> Options FollowSymLinks MultiViews
DirectoryIndex index.html-> DirectoryIndex index.html index.php3 index.php
Increase
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection / examples/
7. Vi / www/conf/mime.types increase
Application/x-httpd-php php php3
8. Copy the downloaded mod_webapp.so to / www/libexec
9. Start Apache
/ www/bin/apachectl startssl
10. Vi / etc/rc.d/init.d/httpd (optional)
#! / bin/sh
. / etc/rc.d/init.d/functions
Case "$1" in
Start)
Echo-n "Starting httpd with SSL:"
/ www/bin/apachectl startssl
Stop)
Echo-n "Shutting down httpd:"
/ www/bin/apachectl stop
Restart)
Echo-n "Restarting httpd:"
/ www/bin/apachectl restart
Status)
Echo-n "Show httpd status:"
/ www/bin/apachectl status
*)
Echo "Usage: $0 {start | stop | restart | status}"
Exit 1
Esac
Exit 0
11. Ln-s / etc/rc.d/init.d/httpd / etc/rc.d/rc3.d/S99httpd (boot autorun)
14. Final test
1. Write a test.php under / www/htdocs/, which reads:
2. Http://localhost/test.php, see if there is a lot of php information coming out. If so, it means that there is no problem with php/mysql and so on. If there is a "with"
Zend Optimizer v1.2.0, Copyright (c) 1998-2001, by Zend Technologies ", description Zend
The Optimizer is installed. If there is "with Zend Cache v1.1.0, Copyright (c) 1999-2001, by Zend"
"Technologies" means that the Zend Cache is installed. By the same token, see if the Zend Accelerator is installed.
3. Visit http://localhost/examples/jsp/index.html, there are many examples of jsp, run to see if there are any problems. Congratulations. Jsp is fine, too.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 255
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.