兴国资源网 Design By www.nnzcdc.com
编译安装apache 2.4.2
复制代码 代码如下:
sudo echo 'start'
echo 常见错误:
echo configure: error: APR not found. Please read the documentation.
echo 解决办法:
wget http://labs.renren.com/apache-mirror/apr/apr-1.4.6.tar.bz2
tar -jxvf apr-1.4.6.tar.bz2
cd apr-1.4.6
./configure --prefix=/usr/local/apr
make
sudo make install
cd ..
echo 常见错误:
echo AH00526: Syntax error on line 490 of /usr/local/apache2/conf/httpd.conf:
echo Unknown filter provider DEFLATE
echo httpd: Syntax error on line 101 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apache2/modules/mod_deflate.so: undefined symbol: inflate
echo 解决办法:
sudo sed -i "s/LDFLAGS=\"\"/LDFLAGS=\"-lz\"/g" '/usr/local/apr/bin/apr-1-config'
wget http://labs.renren.com/apache-mirror/apr/apr-util-1.4.1.tar.bz2
tar -jxvf apr-util-1.4.1.tar.bz2
cd apr-util-1.4.1
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make
sudo make install
cd ..
echo 常见错误:
echo configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
echo 解决办法:
sudo echo start
wget http://downloads.sourceforge.net/project/pcre/pcre/8.30/pcre-8.30.zip
unzip pcre-8.30.zip
cd pcre-8.30
./configure --prefix=/usr/local/pcre
sudo make
sudo make install
cd ..
echo 常见错误:
echo checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
echo 解决办法:
sudo apt-get install -y zlib1g-dev
echo 开始安装:
wget http://labs.renren.com/apache-mirror/httpd/httpd-2.4.2.tar.bz2
tar -jxvf httpd-2.4.2.tar.bz2
cd httpd-2.4.2
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --enable-so --enable-rewrite --enable-deflate --with-module=metadata:expires
make
sudo make install
echo 'ExpiresActive On' | sudo tee -a /usr/local/apache2/conf/httpd.conf
echo 'FileEtag none' | sudo tee -a /usr/local/apache2/conf/httpd.conf
echo 'SetOutputFilter DEFLATE' | sudo tee -a /usr/local/apache2/conf/httpd.conf
sudo sed -i "s/#LoadModule deflate_module modules\/mod_deflate.so/LoadModule deflate_module modules\/mod_deflate.so/g" '/usr/local/apache2/conf/httpd.conf'
sudo /usr/local/apache2/bin/apachectl start
cd ..
编译安装mysql 5.5.25a
Ubuntu 11.04 x64 编译安装mysql
OS:Ubuntu 11.04 x64
手动安装mysql 5.5.17
什么是mysqlnd:http://cn.php.net/manual/zh/mysqli.overview.php#mysqli.overview.mysqlnd
mysqli、mysql、pdo_mysql的区别:http://cn.php.net/manual/zh/mysqli.overview.php#mysqli.overview.mysqlnd
从mysql.com下载最新版的,有rpm自动安装包给Federo、CentOS用,没有deb包。所以Ubuntu要手动安装。下载Linux - Generic 2.6 (x86, 64-bit), Compressed TAR Archive。参考:http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html
下载地址: http://www.mysql.com/downloads/mysql/
复制代码 代码如下:
echo 复制下面整段shell到命令行终端中,会自动逐条执行。
sudo apt-get install -y libaio1
sudo apt-get remove -y mysql-common mysql-server mysql-client
sudo rm -rf /etc/mysql/
wget -O mysql-5.5.20-linux2.6-x86_64.tar.gz http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.20-linux2.6-x86_64.tar.gz/from/http://mysql.oss.eznetsols.org/
tar -zxvf mysql-5.5.20-linux2.6-x86_64.tar.gz
sudo mv ./mysql-5.5.20-linux2.6-x86_64 /usr/local/mysql
sudo groupadd mysql
sudo useradd -r -g mysql mysql
cd /usr/local/mysql
sudo chown -R mysql .
sudo chgrp -R mysql .
sudo /usr/local/mysql/scripts/mysql_install_db --user=mysql
sudo chown -R root .
sudo chown -R mysql data
sudo cp support-files/my-medium.cnf /etc/my.cnf
sudo ln -s /usr/local/mysql/bin/mysql /usr/bin/
sudo ln -s /usr/local/mysql/bin/mysqldump /usr/bin/
sudo cp support-files/mysql.server /etc/init.d/mysql
sudo /etc/init.d/mysql start
./bin/mysqladmin -u root password '1'
sudo /etc/init.d/mysql restart
mysql -uroot -p1
添加服务 让mysqld开机自动启动
复制代码 代码如下:
sudo cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
sudo update-rc.d mysql defaults
安装完成,需要配置mysql。
编译安装php 5.4.4
复制代码 代码如下:
sudo apt-get install -y curl libxml2 libxml2-dev libssl-dev sendmail libcurl4-openssl-dev libjpeg-dev libpng-dev libmcrypt-dev
wget -O php-5.4.4.tar.bz2 http://cn.php.net/get/php-5.4.4.tar.bz2/from/this/mirror
tar -jxvf php-5.4.4.tar.bz2
cd php-5.4.4
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-curl --with-mcrypt --enable-mbstring --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl --with-imap-ssl --with-gd --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --enable-exif --enable-zip
make
sudo make install
sudo cp php.ini-development /usr/local/php/lib/php.ini
sudo rm /usr/bin/php
sudo ln -s /usr/local/php/bin/php /usr/bin/php
echo 'AddHandler application/x-httpd-php .php' | sudo tee -a /usr/local/apache2/conf/httpd.conf
sudo sed -i "s/;include_path = \".:\/php\/includes\"/include_path = \"\/usr\/local\/php\/lib\/php\"/g" '/usr/local/php/lib/php.ini'
sudo /usr/local/apache2/bin/apachectl restart
复制代码 代码如下:
sudo echo 'start'
echo 常见错误:
echo configure: error: APR not found. Please read the documentation.
echo 解决办法:
wget http://labs.renren.com/apache-mirror/apr/apr-1.4.6.tar.bz2
tar -jxvf apr-1.4.6.tar.bz2
cd apr-1.4.6
./configure --prefix=/usr/local/apr
make
sudo make install
cd ..
echo 常见错误:
echo AH00526: Syntax error on line 490 of /usr/local/apache2/conf/httpd.conf:
echo Unknown filter provider DEFLATE
echo httpd: Syntax error on line 101 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apache2/modules/mod_deflate.so: undefined symbol: inflate
echo 解决办法:
sudo sed -i "s/LDFLAGS=\"\"/LDFLAGS=\"-lz\"/g" '/usr/local/apr/bin/apr-1-config'
wget http://labs.renren.com/apache-mirror/apr/apr-util-1.4.1.tar.bz2
tar -jxvf apr-util-1.4.1.tar.bz2
cd apr-util-1.4.1
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make
sudo make install
cd ..
echo 常见错误:
echo configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
echo 解决办法:
sudo echo start
wget http://downloads.sourceforge.net/project/pcre/pcre/8.30/pcre-8.30.zip
unzip pcre-8.30.zip
cd pcre-8.30
./configure --prefix=/usr/local/pcre
sudo make
sudo make install
cd ..
echo 常见错误:
echo checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
echo 解决办法:
sudo apt-get install -y zlib1g-dev
echo 开始安装:
wget http://labs.renren.com/apache-mirror/httpd/httpd-2.4.2.tar.bz2
tar -jxvf httpd-2.4.2.tar.bz2
cd httpd-2.4.2
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --enable-so --enable-rewrite --enable-deflate --with-module=metadata:expires
make
sudo make install
echo 'ExpiresActive On' | sudo tee -a /usr/local/apache2/conf/httpd.conf
echo 'FileEtag none' | sudo tee -a /usr/local/apache2/conf/httpd.conf
echo 'SetOutputFilter DEFLATE' | sudo tee -a /usr/local/apache2/conf/httpd.conf
sudo sed -i "s/#LoadModule deflate_module modules\/mod_deflate.so/LoadModule deflate_module modules\/mod_deflate.so/g" '/usr/local/apache2/conf/httpd.conf'
sudo /usr/local/apache2/bin/apachectl start
cd ..
编译安装mysql 5.5.25a
Ubuntu 11.04 x64 编译安装mysql
OS:Ubuntu 11.04 x64
手动安装mysql 5.5.17
什么是mysqlnd:http://cn.php.net/manual/zh/mysqli.overview.php#mysqli.overview.mysqlnd
mysqli、mysql、pdo_mysql的区别:http://cn.php.net/manual/zh/mysqli.overview.php#mysqli.overview.mysqlnd
从mysql.com下载最新版的,有rpm自动安装包给Federo、CentOS用,没有deb包。所以Ubuntu要手动安装。下载Linux - Generic 2.6 (x86, 64-bit), Compressed TAR Archive。参考:http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html
下载地址: http://www.mysql.com/downloads/mysql/
复制代码 代码如下:
echo 复制下面整段shell到命令行终端中,会自动逐条执行。
sudo apt-get install -y libaio1
sudo apt-get remove -y mysql-common mysql-server mysql-client
sudo rm -rf /etc/mysql/
wget -O mysql-5.5.20-linux2.6-x86_64.tar.gz http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.20-linux2.6-x86_64.tar.gz/from/http://mysql.oss.eznetsols.org/
tar -zxvf mysql-5.5.20-linux2.6-x86_64.tar.gz
sudo mv ./mysql-5.5.20-linux2.6-x86_64 /usr/local/mysql
sudo groupadd mysql
sudo useradd -r -g mysql mysql
cd /usr/local/mysql
sudo chown -R mysql .
sudo chgrp -R mysql .
sudo /usr/local/mysql/scripts/mysql_install_db --user=mysql
sudo chown -R root .
sudo chown -R mysql data
sudo cp support-files/my-medium.cnf /etc/my.cnf
sudo ln -s /usr/local/mysql/bin/mysql /usr/bin/
sudo ln -s /usr/local/mysql/bin/mysqldump /usr/bin/
sudo cp support-files/mysql.server /etc/init.d/mysql
sudo /etc/init.d/mysql start
./bin/mysqladmin -u root password '1'
sudo /etc/init.d/mysql restart
mysql -uroot -p1
添加服务 让mysqld开机自动启动
复制代码 代码如下:
sudo cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
sudo update-rc.d mysql defaults
安装完成,需要配置mysql。
编译安装php 5.4.4
复制代码 代码如下:
sudo apt-get install -y curl libxml2 libxml2-dev libssl-dev sendmail libcurl4-openssl-dev libjpeg-dev libpng-dev libmcrypt-dev
wget -O php-5.4.4.tar.bz2 http://cn.php.net/get/php-5.4.4.tar.bz2/from/this/mirror
tar -jxvf php-5.4.4.tar.bz2
cd php-5.4.4
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-curl --with-mcrypt --enable-mbstring --enable-pdo --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl --with-imap-ssl --with-gd --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --enable-exif --enable-zip
make
sudo make install
sudo cp php.ini-development /usr/local/php/lib/php.ini
sudo rm /usr/bin/php
sudo ln -s /usr/local/php/bin/php /usr/bin/php
echo 'AddHandler application/x-httpd-php .php' | sudo tee -a /usr/local/apache2/conf/httpd.conf
sudo sed -i "s/;include_path = \".:\/php\/includes\"/include_path = \"\/usr\/local\/php\/lib\/php\"/g" '/usr/local/php/lib/php.ini'
sudo /usr/local/apache2/bin/apachectl restart
兴国资源网 Design By www.nnzcdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
兴国资源网 Design By www.nnzcdc.com
暂无评论...
P70系列延期,华为新旗舰将在下月发布
3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。
而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?
根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。
更新日志
2024年11月14日
2024年11月14日
- 魔兽世界wlk暗牧一键输出宏是什么 wlk暗牧一键输出宏介绍
- 群星.1996-红不让台语原唱2辑【福和唱片】【WAV+CUE】
- 郭书瑶.2009-爱的抱抱(EP)【种子音乐】【FLAC分轨】
- 郑瑞芬.1989-BE.MY.BABY【现代】【WAV+CUE】
- 花钱请人每周放30万只不咬人的蚊子 防治登革热传播
- 饭制《第一后裔》丧尸版弗蕾娜
- 贝克汉姆亲临!2024FC品类游戏嘉年华圆满落幕
- 「命轨爻错之翼」风之翼发放说明
- 《原神》前瞻特别节目回顾长图
- 米游币抽抽乐-原神专场现已开启!
- 黑鸭子2001《风情中国HQCD》[日本版][WAV+CUE]
- 陈杰洲1990-成人礼[滚石][WAV+CUE]
- MarkAanderud-HandsFree(2024)[24-44,1]FLAC
- 孙露《观心》1:1母盘直刻限量版[低速原抓WAV+CUE][361M]
- 钟志刚《汽车DJ玩主》[低速原抓WAV+CUE][1G]