CentOS 6.0 最小化编译安装Apache+MySQL+PHP+Zend
2011年10月23日⁄LAMP⁄评论数 1
引言:
操作系统:CentOS 6.0 32位
下载地址:
mirrors.163/centos/6.0/isos/i386/CentOS-6.0-i386-bin-DVD.i so
安装方式:采用最小化安装,在安装系统的时候选择Minimal (CentOS 6.0默认就是Minimal安装模式,不含有任何可选安装包)
最小化安装完成之后,系统占用900M左右磁盘空间
备注:操作系统的安装,这里就不演示了,如果有疑问可以参考相关教程
java入门到精通电子版下载CentOS 6.0安装图解教
程 wenku.baidu/view/668f53e9e009581b6bd9ebc9.html
系统运维www.osyunwei温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
===================================================================== ================================安装前准备:
1、配置好ip dns 网关,确保使用远程连接工具能够连接服务器
2、关闭selinux
vi /etc/selinux/config 把SELINUX=enforcing SELINUXTYPE=targeted注释掉,然后新加一行为:SELINUX=disabled
3、开启防火墙相应端口,apache需要开启80端口 MySQL需要开启3306端口
vi /etc/sysconfig/iptables #编辑配置文件添加下面的内容 -A INPUT -m state --state NEW -m tcp -p tc
p --dport 80 -j ACCEPT #(允许80端口通过防火墙)
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #(允许3306端口通过防火墙)
/etc/init.d/iptables restart #重启防火墙使配置生效
系统运维www.osyunwei温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
4 、系统约定
软件源代码包存放位置:/usr/local/src
源码包编译安装位置:/usr/local/软件名字
5、下载软件
switch语句可以代替哪个语句>谈谈你对springboot的理解ak//httpd/httpd-2.2. #下载apache
gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.1/mysql-5.1.59 - #下载mysql
cn.php/distributions/php-5.2. #下载php
d/optimizer/3.3.9/ZendOptimizer-3.3.9-li #下载ZendOptimize
/src/5.0/perl-5.14. #下载perl
ftp:///pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5 . #下载libmcrypt
用WinSCP远程连接到服务器,把下载好的软件上传到服务器
/usr/local/src下面。
6、下载编译工具(要编译安装软件,必须先安装编译工具)
下载地址/centos/6.0/os/i386/Packages/
html中文章太长制作滚动条或者直接从CentOS 6.0的安装光盘中复制出来,打开安装光盘,在Packages文件夹下面,到下面的安装包
kernel-headers-2.6.32-71.el6.i686.rpm
compat-glibc-headers-2.5-46.2.i686.rpm
compat-glibc-2.5-46.2.i686.rpm
compat-libstdc++-33-3.2.3-69.el6.i686.rpm
compat-libf2c-34-3.4.6-19.el6.i686.rpm
compat-libgcc-296-2.96-144.el6.i686.rpm
mpfr-2.4.1-6.el6.i686.rpm
cpp-4.4.4-13.el6.i686.rpm
glibc-headers-2.12-1.7.el6.i686.rpm
glibc-devel-2.12-1.7.el6.i686.rpm
libgomp-4.4.4-13.el6.i686.rpm
libstdc++-devel-4.4.4-13.el6.i686.rpm
ppl-0.10.2-11.el6.i686.rpm
cloog-ppl-0.15.7-1.2.el6.i686
gcc-4.4.4-13.el6.i686.rpm
compat-gcc-34-3.4.6-19.el6.i686.rpm
compat-gcc-34-c++-3.4.6-19.el6.i686.rpm
make-3.81-19.el6.i686.rpm
keyutils-libs-devel-1.4-1.el6.i686.rpm
libcom_err-devel-1.41.12-3.el6.i686.rpm
libsepol-devel-2.0.41-3.el6.i686.rpm
libselinux-devel-2.0.94-2.el6.i686.rpm
krb5-devel-1.8.2-3.el6.i686.rpm
结构体数组如何使用
zlib-devel-1.2.3-25.el6.i686.rpm
openssl-devel-1.0.0-4.el6.i686.rpm
libXpm-3.5.8-2.el6.i686.rpm
gd-2.0.35-10.el6.i686.rpm
freetype-2.3.11-5.el6.i686.rpm
libxml2-2.7.6-1.el6.i686.rpm
libxml2-devel-2.7.6-1.el6.i686.rpm
curl-7.19.7-16.el6.i686.rpm
libjpeg-devel-6b-46.el6.i686.rpm
libjpeg-6b-46.el6.i686.rpm
libjpeg-static-6b-46.el6.i686.rpm
libpng-1.2.44-1.el6.i686.rpm
libpng-devel-1.2.44-1.el6.i686.rpm
libpng-static-1.2.44-1.el6.i686.rpm
php-common-5.3.2-6.el6.i686.rpm
php-gd-5.3.2-6.el6.i686.rpm
gcc-c++-4.4.4-13.el6.i686.rpm
ncurses-devel-5.7-3.20090208.el6.i686.rpm
ncurses-term-5.7-3.20090208.el6.i686.rpm
ncurses-static-5.7-3.20090208.el6.i686.rpm
perl-Pod-Escapes-1.04-115.el6.i686.rpm
perl-libs-5.10.1-115.el6.i686.rpm
perl-version-0.77-115.el6.i686.rpm
perl-Module-Pluggable-3.90-115.el6.i686.rpm
perl-Pod-Simple-3.13-115.el6.i686.rpm
perl-5.10.1-115.el6.i686.rpm
autoconf213-2.13-20.arch.rpm
autoconf-2.63-5.arch.rpm
automake-1.11.1-1.arch.rpm
automake14-1.4p6-19.arch.rpm
automake16-1.6.3-18.arch.rpm
libtool-ltdl-2.2.6-15.5.el6.i686.rpm
libtool-ltdl-devel-2.2.6-15.5.el6.i686.rpm
libtool-2.2.6-15.5.el6.i686.rpm
patch-2.6-6.el6.i686.rpm
把这些安装包用WinSCP远程连接工具上传到服务器的/usr/local/src下面到此,安装前准备工作完成,
注意:这里我们是把软件下载好之后,再通过远程连接工具上传到服务器上面的。
因为最小化安装完系统之后是不带wget命令的,所以无法直接从服务器下载,
当然,不建议直接在服务器上面下载软件。
系统运维www.osyunwei温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
============================================================= =
正式安装开始
以下是用putty工具远程登录到服务器,在终端命令行下面操作的
1、安装编译工具
cd /usr/local/src #进入软件包存放目录
按照以下顺序进行安装,特别注意:顺序一定不能错,否则安装失败
小技巧:可以把下面的所有行按顺序一次性复制到终端命令行,
系统会自动安装的,这样会节省很对时候,同时也避免操作错误!
>>>>>>>>>>>>>### rpm -ivh kernel-headers-2.6.32-71.el6.i686.rpm
rpm -ivh compat-glibc-headers-2.5-46.2.i686.rpm
rpm -ivh compat-glibc-2.5-46.2.i686.rpm
rpm -ivh compat-libstdc++-33-3.2.3-69.el6.i686.rpm
rpm -ivh compat-libf2c-34-3.4.6-19.el6.i686.rpm
rpm -ivh compat-libgcc-296-2.96-144.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.4-13.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.7.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.7.el6.i686.rpm
rpm -ivh libgomp-4.4.4-13.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm
rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh gcc-4.4.4-13.el6.i686.rpm
rpm -ivh compat-gcc-34-3.4.6-19.el6.i686.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-19.el6.i686.rpm
rpm -ivh make-3.81-19.el6.i686.rpm
rpm -ivh keyutils-libs-devel-1.4-1.el6.i686.rpm
rpm -ivh libcom_err-devel-1.41.12-3.el6.i686.rpm
rpm -ivh libsepol-devel-2.0.41-3.el6.i686.rpm
rpm -ivh libselinux-devel-2.0.94-2.el6.i686.rpm
rpm -ivh krb5-devel-1.8.2-3.el6.i686.rpm
rpm -ivh zlib-devel-1.2.3-25.el6.i686.rpm
rpm -ivh openssl-devel-1.0.0-4.el6.i686.rpm
rpm -ivh libXpm-3.5.8-2.el6.i686.rpm
rpm -ivh gd-2.0.35-10.el6.i686.rpm
rpm -ivh freetype-2.3.11-5.el6.i686.rpm
rpm -ivh libxml2-2.7.6-1.el6.i686.rpm
rpm -ivh libxml2-devel-2.7.6-1.el6.i686.rpm
rpm -ivh curl-7.19.7-16.el6.i686.rpm
rpm -ivh libjpeg-devel-6b-46.el6.i686.rpm
rpm -ivh libjpeg-6b-46.el6.i686.rpm
rpm -ivh libjpeg-static-6b-46.el6.i686.rpm
rpm -ivh libpng-1.2.44-1.el6.i686.rpm
rpm -ivh libpng-devel-1.2.44-1.el6.i686.rpm
rpm -ivh libpng-static-1.2.44-1.el6.i686.rpm
rpm -ivh php-common-5.3.2-6.el6.i686.rpm
rpm -ivh php-gd-5.3.2-6.el6.i686.rpm
rpm -ivh gcc-c++-4.4.4-13.el6.i686.rpm
rpm -ivh ncurses-devel-5.7-3.20090208.el6.i686.rpm
rpm -ivh ncurses-term-5.7-3.20090208.el6.i686.rpm
rpm -ivh ncurses-static-5.7-3.20090208.el6.i686.rpm
rpm -ivh --nodeps perl-Pod-Escapes-1.04-115.el6.i686.rpm
rpm -ivh --nodeps perl-libs-5.10.1-115.el6.i686.rpm
rpm -ivh --nodeps perl-version-0.77-115.el6.i686.rpm
rpm -ivh --nodeps perl-Module-Pluggable-3.90-115.el6.i686.rpm rpm -ivh --nodeps perl-Pod-Simple-3.13-115.el6.i686.rpm
rpm -ivh --nodeps perl-5.10.1-115.el6.i686.rpm
rpm -ivh autoconf213-2.13-20.arch.rpm
rpm -ivh autoconf-2.63-5.arch.rpm
rpm -ivh automake-1.11.1-1.arch.rpm
rpm -ivh automake14-1.4p6-19.arch.rpm
rpm -ivh automake16-1.6.3-18.arch.rpm
rpm -ivh libtool-ltdl-2.2.6-15.5.el6.i686.rpm
rpm -ivh libtool-ltdl-devel-2.2.6-15.5.el6.i686.rpm
rpm -ivh libtool-2.2.6-15.5.el6.i686.rpm
rpm -ivh patch-2.6-6.el6.i686.rpm
>>>>>>>>>>###
2、安装libmcrypt
cd /usr/local/src
tar zxvf libmcrypt-2.5. #解压
cd libmcrypt-2.5.7 #进入目录
.
/configure #配置
make #编译
make install #安装
========================================
3、安装perl
cd /usr/local/src
tar zxvf perl-5.14.
cd perl-5.14.1
./Configure -des -Dprefix=/usr/local/perl
make
make install
系统运维www.osyunwei温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
mysql是什么系统=======================================
4、安装MySQL
cd /usr/local/src
tar zxvf mysql-5.1. #解压
cp -r mysql-5.1.59-linux-i686-glibc23 /usr/local/ #复制文件夹到/usr/local/目录下面
cd /usr/local #进入/usr/local目录
mv mysql-5.1.59-linux-i686-glibc23 mysql #把文件夹
mysql-5.1.59-linux-i686-glibc23改名为mysql
groupadd mysql #添加mysql组
useradd -g mysql mysql -s /bin/false #创建用户mysql并加入到mysql 组,不允许mysql用户直接登录系统
chown -R root /usr/local/mysql/ #允许root访问
chgrp -R mysql /usr/local/mysql/ #允许mysql组访问
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
MySql8.0.11安装配置教程
« 上一篇
mysql数据库武洪萍版第二章习题与答案
下一篇 »
发表评论