1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| rpm -q gcc glibc glibc-common gd gd-devel xinetd openssl-devel libxml2 libxml2-devel
gcc-4.1.2-54.el5 glibc-2.5-107.el5_9.5 glibc-common-2.5-107.el5_9.5 gd-2.0.33-9.4.el5_4.2 package gd-devel is not installed package xinetd is not installed openssl-devel-0.9.8e-26.el5_9.1 yum install xinetd gd-devel libxml2 libxml2-devel wget http://archive.apache.org/dist/httpd/httpd-2.2.23.tar.gz tar zxvf httpd-2.2.23.tar.gz cd httpd-2.2.23 ./configure --prefix=/usr/local/apache2 make && make install
# wget https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz # tar -zxvf sqlite-autoconf-3420000.tar.gz # cd sqlite-autoconf-3420000/ # ./configure # make && make install #
mkdir /usr/local/php wget https://museum.php.net/php5/php-5.4.16.tar.gz tar zxvf php-5.4.16.tar.gz cd php-5.4.16 ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs make && make install # 安装Mysql[用于持久化存储,可视化配置等功能]. 安装Mysql的时候先确认下是否已经安装了..如果没有则运行yum安装. yum -y install ncurses-devel yum -y install perl-Data-Dumper gcc gcc-c++ openssl-devel clear tar zxvf cmake-2.8.7.tar.gz -C /usr/src tar zxvf mysql-5.5.22.tar.gz -C /usr/src cd /usr/src cd cmake-2.8.7/ ./configure && gmake && gmake install cd /usr/src/mysql-5.5.22/ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all && make && make install
useradd mysql chown mysql:mysql -R /usr/local/mysql/ /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data cp support-files/mysql.server /etc/init.d/mysqld chmod a+x /etc/init.d/mysqld cp -p support-files/my-medium.cnf /etc/my.cnf service mysqld start ln -s /usr/local/mysql/bin/* /usr/local/bin/ # 安装好以后需要简单的配置下Mysql.确认old_passwords=0的值是不是0.如果不是,则修改为0
|