lamp 环境编译
来源:互联网 发布:怎么查看服务器的域名 编辑:程序博客网 时间:2024/05/21 17:18
所需工具
gcc gcc-c++ make
用光盘上的软件包进行安装
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
CentOS-Media.repo 光盘源
CentOS-Media.repo
enabled=0 0配置文件未启用 1表示启用
修改baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
为
修改baseurl=file:///mnt/cdrom/
file:///media/cdrom/
file:///media/cdrecorder/
然后删除
CentOS-Base.repo文件
libmcrypt需要gcc-c++
安装之前先查看系统中是否安装了软件
service httpd status
service mysqld status
service mysql status
rpm -qa | grep httpd
rpm -qa | grep mysql
rpm -qa | grep php
yum install libtool
yum install libtool-ltdl
删除软件
service 操作的就是/etc/rc.d/init.d目录下的脚本
rpm命令不能够查看用源代码包安装的软件是否被安装
rpm只能查看用rpm安装的软件
yum remove httpd
更改SELinux配置文件设为关闭
Netfilter/iptables 好像禁用80端口了
iptables -F
解压软件包
tar.sh
1 cd /home/xiaobai/package
2 ls *.tar.gz > ls.list
3
4 for TAR in `cat ls.list`
5 do
6 /bin/tar -zxf $TAR
7 done
1.解压解包 .tar.gz tar -zxf
2 ./configure
3 make 编译
4 make install 安装 拷贝
./configure --help | grep prefix
如果编译出错
rm -rf /usr/local/libxml2
重新解压编译
apache mysql 如果出错
先关闭进程 再删除
make && make install
lamp.sh文件
cd /lamp/libxml2-2.6.30
./configure --prefix=/usr/local/libxml2/
make
make install
cd /lamp/libmcrypt-2.5.8
./configure --prefix=/usr/local/libmcrypt/
make
make install
cd /lamp/libmcrypt-2.5.8/libltdl
./configure --enable-ltdl-install
make
make install
cd /lamp/zlib-1.2.3
./configure
make
make install
cd /lamp/libpng-1.2.31
./configure --prefix=/usr/local/libpng/
make
make install
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir -p /usr/local/jpeg6/man/man1
cd /lamp/jpeg-6b
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
make
make install
cd /lamp/freetype-2.3.5
./configure --prefix=/usr/local/freetype/
make
make install
cd /lamp/autoconf-2.61
./configure
make
make install
cd /lamp/gd-2.0.35
./configure --prefix=/usr/local/gd2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/
make
make install
cd /lamp/httpd-2.2.9
./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support
make
make install
/usr/local/apache2/bin/apachectl start
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinit
cd /lamp/ncurses-5.6
./configure --with-shared --without-debug --without-ada --enable-overwrite
make
make install
groupadd mysql
useradd -g mysql mysql
cd /lamp/mysql-5.0.41
./configure --prefix=/usr/local/mysql/ --with-extra-charsets=all
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db --user=mysql
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld
chown root.root /etc/rc.d/init.d/mysqld
chmod 755 /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig --list mysqld
chkconfig --levels 245 mysqld off
cd /lamp/php-5.2.6
./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
make
make install
cp php.ini-dist /usr/local/php/etc/php.ini
echo "Addtype application/x-httpd-php .php .phtml" >> /etc/httpd/httpd.conf
/usr/local/apache2/bin/apachectl restart
gcc gcc-c++ make
用光盘上的软件包进行安装
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
更改yum源
在/etc/yum.repos.d
CentOS-Media.repo 光盘源
CentOS-Media.repo
enabled=0 0配置文件未启用 1表示启用
修改baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
为
修改baseurl=file:///mnt/cdrom/
file:///media/cdrom/
file:///media/cdrecorder/
然后删除
CentOS-Base.repo文件
libmcrypt需要gcc-c++
安装之前先查看系统中是否安装了软件
service httpd status
service mysqld status
service mysql status
rpm -qa | grep httpd
rpm -qa | grep mysql
rpm -qa | grep php
yum install libtool
yum install libtool-ltdl
删除软件
service 操作的就是/etc/rc.d/init.d目录下的脚本
rpm命令不能够查看用源代码包安装的软件是否被安装
rpm只能查看用rpm安装的软件
yum remove httpd
更改SELinux配置文件设为关闭
SELINUX=enforcing给为disabled
/etc/selinux/config
Netfilter/iptables 好像禁用80端口了
iptables -F
解压软件包
tar.sh
1 cd /home/xiaobai/package
2 ls *.tar.gz > ls.list
3
4 for TAR in `cat ls.list`
5 do
6 /bin/tar -zxf $TAR
7 done
1.解压解包 .tar.gz tar -zxf
2 ./configure
3 make 编译
4 make install 安装 拷贝
./configure --help | grep prefix
如果编译出错
rm -rf /usr/local/libxml2
重新解压编译
apache mysql 如果出错
先关闭进程 再删除
make && make install
lamp.sh文件
cd /lamp/libxml2-2.6.30
./configure --prefix=/usr/local/libxml2/
make
make install
cd /lamp/libmcrypt-2.5.8
./configure --prefix=/usr/local/libmcrypt/
make
make install
cd /lamp/libmcrypt-2.5.8/libltdl
./configure --enable-ltdl-install
make
make install
cd /lamp/zlib-1.2.3
./configure
make
make install
cd /lamp/libpng-1.2.31
./configure --prefix=/usr/local/libpng/
make
make install
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir -p /usr/local/jpeg6/man/man1
cd /lamp/jpeg-6b
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
make
make install
cd /lamp/freetype-2.3.5
./configure --prefix=/usr/local/freetype/
make
make install
cd /lamp/autoconf-2.61
./configure
make
make install
cd /lamp/gd-2.0.35
./configure --prefix=/usr/local/gd2/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/
make
make install
cd /lamp/httpd-2.2.9
./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/httpd/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support
make
make install
/usr/local/apache2/bin/apachectl start
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.d/rc.sysinit
cd /lamp/ncurses-5.6
./configure --with-shared --without-debug --without-ada --enable-overwrite
make
make install
groupadd mysql
useradd -g mysql mysql
cd /lamp/mysql-5.0.41
./configure --prefix=/usr/local/mysql/ --with-extra-charsets=all
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db --user=mysql
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld
chown root.root /etc/rc.d/init.d/mysqld
chmod 755 /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig --list mysqld
chkconfig --levels 245 mysqld off
cd /lamp/php-5.2.6
./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets
make
make install
cp php.ini-dist /usr/local/php/etc/php.ini
echo "Addtype application/x-httpd-php .php .phtml" >> /etc/httpd/httpd.conf
/usr/local/apache2/bin/apachectl restart
- lamp 环境编译
- lamp 环境编译
- 源代码编译lamp环境
- LAMP环境编译
- LAMP 环境编译
- 编译安装lamp环境
- lamp环境编译安装
- 编译安装lamp环境
- centos6 lamp环境源代码编译
- 源码编译安装lamp环境
- 编译安装lamp lnmp环境
- Centos-编译安装lamp环境
- Ubuntu 11.10 源代码编译安装lamp环境
- lamp环境编译出现的相关问题
- linux 下面编译安装LAMP环境
- CentOS6.3(6.5)编译搭建LAMP环境
- LAMP环境官方最新源码编译安装
- Linux编译安装LAMP环境(php5.6)
- linux dentry cache
- C#中的AS关键字
- Android Dialog
- PhoneGap-----DataBase
- 消息推送机制实现与探讨
- lamp 环境编译
- ExecuteAndWaitInterceptor拦截器使用
- ZBar扫描区域设置
- 关于Tcp封包
- 安卓巴士自测试题-第十九期
- JSP转译成Servlet详细过程
- linux文件系统2-linux虚拟文件系统
- error C2664: “FindFirstFileW”: 不能将参数 1 从“char [260]”转换为“LPCWST
- linux mount (挂载命令)详解