安装步骤:
//查看当前文件系统
[root@localhost ~]# df -h
//查找分区
[root@localhost ~]# fdisk /dev/sda
Command (m for help): p //选择
Command (m for help): n //选择
Command action
e extended
p primary partition (1-4)
P //选择
p primary partition (1-4) 1 //选择
Command (m for help): w //选择
[root@localhost ~]# partprobe
[root@localhost ~]# fdisk -l
[root@localhost ~]# mkfs.ext3 /dev/sda
PS:这里可能要写 sda1
[root@localhost ~]# fdisk -l
[root@localhost ~]# mkdir -p /data
[root@localhost ~]# vi /etc/fstab
/dev/sda1 /data ext3 defaults 0 0
[root@localhost ~]# mount –a
[root@localhost ~]# df -h
更新升级源
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
wget http://blog.s135.com/soft/linux/centos/5.2/CentOS-Base.repo
网易开通了一个开源软件的镜像站点,网址为:
http://mirrors.163.com/
第一步:
#—————————————-
|利用CentOS Linux系统自带的yum命令安装、升级所需的程序库
|(RedHat等其他Linux发行版可从安装光盘中找到这些程序库的RPM包,进行安装)
#—————————————-
#设置默认语言为中文
LANG=C
#运行yum命令 安装程序 yum -y insall
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
#—————————————-
*RedHat AS4 系统环境
#—————————————-
I.i386 系统 wget ->下载
rpm ->rmp原本是Red Hat Linux发行版专门用来管理Linux各项套件的程序,由于它遵循GPL规则且功能强大方便,因而广受欢迎。
-i 显示套件的相关信息。
-h或–hash 套件安装时列出标记。
-v 显示指令执行过程。
#————————————————————————————–+
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/i386/libjpeg-devel-6b-33.i386.rpm
# rpm -ivh libjpeg-devel-6b-33.i386.rpm
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/i386/freetype-devel-2.1.9-1.i386.rpm
# rpm -ivh freetype-devel-2.1.9-1.i386.rpm
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/i386/libpng-devel-1.2.7-1.i386.rpm
# rpm -ivh libpng-devel-1.2.7-1.i386.rpm
#————————————————————————————–+
#—————————————-
II.x86_64 系统
#—————————————-
#—————————————————————————————-+
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/x86_64/libjpeg-devel-6b-33.x86_64.rpm
# rpm -ivh libjpeg-devel-6b-33.x86_64.rpm
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/x86_64/freetype-devel-2.1.9-1.x86_64.rpm
# rpm -ivh freetype-devel-2.1.9-1.x86_64.rpm
# wget http://blog.s135.com/soft/linux/nginx_php/rpm/x86_64/libpng-devel-1.2.7-1.x86_64.rpm
# rpm -ivh libpng-devel-1.2.7-1.x86_64.rpm
#—————————————————————————————-+
第二步:
#—————————————-
|下载程序源码包|
#—————————————-
#——————————————————————————————–+
# mkdir -p 若所要建立目录的上层目录目前尚未建立,则会一并建立上层目录
mkdir -p /data0/software
cd /data0/software
#可以把下载好的的语言包复制到/data0/software目录
wget http://blog.s135.com/soft/linux/nginx_php/nginx/nginx-0.8.15.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/php/php-5.2.10.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/phpfpm/php-5.2.10-fpm-0.5.11.diff.gz
wget http://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.1.38.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/libiconv/libiconv-1.13.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/mcrypt/mcrypt-2.6.8.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/mcrypt/libmcrypt-2.5.8.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/memcache/memcache-2.2.5.tgz
wget http://blog.s135.com/soft/linux/nginx_php/mhash/mhash-0.9.9.9.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/pcre/pcre-7.9.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/eaccelerator/eaccelerator-0.9.5.3.tar.bz2
wget http://blog.s135.com/soft/linux/nginx_php/pdo/PDO_MYSQL-1.0.2.tgz
wget http://blog.s135.com/soft/linux/nginx_php/imagick/ImageMagick.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/imagick/imagick-2.2.2.tgz
#———————————————————————————————+