In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how CentOS 5 compiles and compiles basic class system software. The content of the article is of high quality, so Xiaobian shares it with you as a reference. I hope you have a certain understanding of relevant knowledge after reading this article.
The CentOS community continues to merge with other communities of its kind, making CentOS Linux the most widely used RHEL-compatible version. CentOS 5 compiles basic system software (linux)
1, CentOS 5 compile mysql-5.1.34
Since Mysql client rpm package is installed during initial installation, how to install Google specifically.
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-5.1.34.tar.gz
cd mysql-5.1.34
./ configure --prefix=/usr/local/mysql
make
make install clean
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
chown -R mysql . //There's a dot at the back, pay attention!
chgrp -R mysql . //There's a dot at the back, pay attention!
bin/mysql_install_db --user=mysql
chown -R root . //There's a dot at the back, pay attention!
chown -R mysql var
bin/mysqld_safe --user=mysql &
If there is no error, MySQL should start normally.
However, Mysql 5.1.X starts Mysql, it will write information to XXX file with a message, no need to worry about it.
CentOS 5 compiled httpd-2.2.11 (apache)
tar zxvf httpd-2.2.11.tar.gz
cd httpd-2.2.11
./ configure --prefix=/usr/local/apache --enable-rewrite=shared --enable-speling=shared --enable-track-vars --enable-cgi --enable-so --enable-mods-shared=all
make
make install clean
After installation, use/usr/local/apache/bin/apachectl -k start to start
CentOS 5 compiles GD2 and Lib
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./ configure --prefix=/usr/local/zlib
make
make install clean
tar zxvf libpng-1.2.35.tar.gz
cd libpng-1.2.35
./ configure --prefix=/usr/local/libpng
make
make install clean
tar zxvf freetype-2.3.9.tar.gz
cd freetype-2.3.9
./ configure --prefix=/usr/local/freetype2
make
make install clean
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./ configure --prefix=/usr/local/jpeg6
make
make install clean
CentOS 5 compilation installation prompt can not find the directory, you can manually create the directory.
If the above software is successfully installed, you can start installing GD.
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./ configure --prefix=/usr/local/gd2 --with-png=/usr/local/libpng --with-freetype=/usr/local/freetype2 --with-jpeg=/usr/local/jpeg6
* **
Configuration summary for gd 2.0.35:
Support for PNG library: yes
Support for JPEG library:yes
Support for Freetype 2.x library: yes
Support for Fontconfig library:no
Support for Xpm library: no
Support for pthreads: yes
Png, jpeg and freetype are installed.
CentOS 5 compiled php-5.2.9
tar zxvf php-5.2.9.tar.gz
cd php-5.2.9
./ configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/jpeg6 --with-freetype-dir=/usr/local/freetype2 --with-zlib-dir=/usr/local/zlib --with-gd-dir=/usr/local/gd2 --enable-ftp --enable-sockets
make
make install clean
cp php.ini-dist /usr/local/php5/lib/php.ini
Configure httpd.conf to make apache support PHP
vi /usr/local/apache/conf/httpd.conf
Find AddType application/x-gzip .gz .tgz and add the following below
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
restart Apache
/usr/local/apache/bin/apachectl -k restart
CentOS 5 compiles Zend 3.3.3
tar zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.3-linux-glibc23-i386
./ install.sh
Follow the prompts to install
Note that the path to the PHP.ini file and the path to the Apache Apachectl file are configured
After installation, if apache is configured correctly, restart apache to make the settings take effect.
6, CentOS 5 compile Test:
/usr/local/php/bin/php -m
/usr/local/php/bin/php -i
Or edit a PHP page to test phpinfo.php
echo phpinfo.php >
/usr/local/php/bin/php phpinfo.php > info.txt
vi or cat info.txt
CentOS 5 compiles and compiles the basic class system software is how to share here, hope the above content can have certain help to everyone, can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
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.