In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to install Apache + PHP + Mysql + JDK + Resin under RedHat Linux 7.3.The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Installation environment
C466 + 128m memory
Pay attention to selecting the Chinese kernel when installing RH Linux7.3.
Apache download address: http://httpd.apache.org/DOWNLOAD.CGI
Download httpd-2.0.48.tar.gz
PHP download address: http://www.php.NET/downloads.php
Download PHP 4.3.4 (tar.gz)
Mysql download address: http://www.MYSQL.com/downloads/mysql-4.0.html
Download Linux (x86, libc6) Standard 4.0.16
Jdk download address: http://Java.sun.com/j2se/1.4.2/download.html
Download the SDK file for Linux self-extracting file
Resin download address: http://www.caucho.com/download/index.xtp
Download resin-3.0.4.tar.gz
When you are done now, upload the above files to / usr/local/src/
/ / install Mysql
Cd / usr/local/src
Tar zxvf mysql-standard-4.0.16-pc-linux-i686.tar.gz
Mv mysql-standard-4.0.16-pc-linux-i686 / usr/local/mysql
Cd / usr/local/mysql
Groupadd mysql
Useradd-g mysql mysql
S cripts/mysql_install_db
Chown-R root.
Chown-R mysql data
Chgrp-R mysql.
Bin/mysqld_safe-- user=mysql &
/ / Mysql should be able to start
/ / install Apache
Cd / usr/local/src
Tar zxvf httpd-2.0.48.tar.gz
Cd httpd-2.0.48
. / configure-with-apache=/usr/local/apache-enable-so
Make
Make install
/ / Apache installation completed
/ / install PHP
Cd / usr/local/src
Tar zxvf php-4.3.4.tar.gz
Cd php-4.3.4
. / configure-with-apxs2=/usr/local/apache/bin/apxs-with-mysql=/usr/local/mysql
Make
Make install
Cp php.ini-dist / usr/local/lib/php.ini
/ / PHP installation completed
Cd / usr/local/apache/conf
Modify the httpd.conf file to add
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
Save
Cd / usr/local/apache/bin
. / apachectl start
Start apache, you can test it through the browser, and you can also make a PHP file of phpinfo () and put it under / usr/local/apache/htdocs/ to test whether the PHP is correct.
Stop apache first
. / apachectl stop
Continue with the installation
/ / install JDK
Cd / usr/local/src
Chmod + x j2sdk-1_4_2_02-linux-i586.bin
. / j2sdk-1_4_2_02-linux-i586.bin
After reading the License, select "Y", and the file will decompress itself.
Mv j2sdk-1_4_2_02-linux-i586 / usr/local/jdk
Vi / etc/profile
Join at the end
JAVA_HOME=/usr/local/jdk
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
Export JAVA_HOME CLASSPATH PATH
Save, exit
Re-enter after exiting the system, use the env command to see whether the environment variables are valid, mainly look at JAVA_HOME, CLASSPATH, PATH
/ / install Resin
Cd / usr/local/src
Tar zxvf resin-3.0.4.tar.gz
Mv resin-3.0.4 / usr/local/resin
Cd / usr/local/resin
. / configure-- with-apache=/usr/local/apache
Make
Make install
/ / resin installation completed
We are compiling Resin and Apache together, and then we can use JSP directly under Apache.
Cd / usr/local/resin/bin
. / httpd.sh start or. / start-httpd.sh can start resin
Cd / usr/local/apache/bin
. / apachectl start
Start apache
After the installation process is completed, the startup commands of mysql and apache can be put into the system startup script, and apache and mysql can be started when the system starts.
Resin to join the system startup method is more complex, I did not do the test, you can look for relevant information.
This is the end of this article on "how to install Apache + PHP + Mysql + JDK + Resin under RedHat Linux 7.3.I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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: 0
*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.