最近配置了几台Web服务器,将安装笔记贴出来吧。没时间像以前那样,将文章写的那样系统了,请见谅。详细配置,可以看以前的旧文章:

  http://blog.zyan.cc/nginx_php_v6

  1、安装Nginx:
mkdir -p /Data/tgz
cd /Data/tgz
yum install wget
yum install pcre
yum install openssl*
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 make
yum -y install gd gd2 gd-devel gd2-devel
/usr/sbin/groupadd www
/usr/sbin/useradd -g www www
ulimit -SHn 65535
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz
tar zxvf pcre-8.32.tar.gz
cd pcre-8.32
./configure --prefix=/Data/apps/pcre
make && make install
cd ../

wget http://nginx.org/download/nginx-1.5.2.tar.gz
tar zxvf nginx-1.5.2.tar.gz
cd nginx-1.5.2
./configure --user=www --group=www --prefix=/Data/apps/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/Data/tgz/pcre-8.32 --with-http_realip_module --with-http_image_filter_module
make
make install
cd ../


  2、安装 MySQL:
wget http://downloads.mysql.com/archives/mysql-5.6/mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
tar zxvf mysql-5.6.10-linux-glibc2.5-x86_64.tar.gz
mv mysql-5.6.10-linux-glibc2.5-x86_64 /Data/apps/mysql
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
mkdir -p /Data/data/mysql/data
yum install libaio
/Data/apps/mysql/scripts/mysql_install_db --basedir=/Data/apps/mysql --datadir=/Data/data/mysql/data --user=mysql

sed -i "s#/usr/local/mysql#/Data/apps/mysql#g" /Data/apps/mysql/bin/mysqld_safe


  3、安装PHP依赖库
mkdir -p /Data/apps/libs/
wget http://www.ijg.org/files/jpegsrc.v9.tar.gz    
tar zxvf jpegsrc.v9.tar.gz
cd jpeg-9/
./configure --prefix=/Data/apps/libs --enable-shared --enable-static --prefix=/Data/apps/libs
make
make install
cd ../

wget http://prdownloads.sourceforge.net/libpng/libpng-1.6.2.tar.gz
tar zxvf libpng-1.6.2.tar.gz
cd libpng-1.6.2/
./configure --prefix=/Data/apps/libs
make
make install
cd ../

wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.gz
tar zxvf freetype-2.4.12.tar.gz
cd freetype-2.4.12/
./configure --prefix=/Data/apps/libs
make
make install
cd ../


wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz?big_mirror=0"
wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?big_mirror=0"
wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz?big_mirror=0"


tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure --prefix=/Data/apps/libs
make
make install
cd libltdl/
./configure --prefix=/Data/apps/libs --enable-ltdl-install
make
make install
cd ../../


tar zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9/
./configure --prefix=/Data/apps/libs
make
make install
cd ../


vi /etc/ld.so.conf

添加:
/Data/apps/libs/lib

然后:
ldconfig


tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
export LDFLAGS="-L/Data/apps/libs/lib -L/usr/lib"
export CFLAGS="-I/Data/apps/libs/include -I/usr/include"
touch malloc.h
./configure --prefix=/Data/apps/libs --with-libmcrypt-prefix=/Data/apps/libs
make
make install
cd ../


  4、编译安装PHP 5.5
wget http://www.php.net/get/php-5.5.1.tar.gz/from/tw2.php.net/mirror
tar zxvf php-5.5.1.tar.gz
cd php-5.5.1/
export LIBS="-lm -ltermcap -lresolv"
export DYLD_LIBRARY_PATH="/Data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
export LD_LIBRARY_PATH="/Data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"
./configure --prefix=/Data/apps/php --with-config-file-path=/Data/apps/php/etc --with-mysql=/Data/apps/mysql --with-mysqli=/Data/apps/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir=/Data/apps/libs --with-jpeg-dir=/Data/apps/libs --with-png-dir=/Data/apps/libs --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt=/Data/apps/libs --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-opcache --with-pdo-mysql --enable-maintainer-zts
make
make install
cp php.ini-development /Data/apps/php/etc/php.ini
cd ../


ln -s /Data/apps/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
mv /Data/apps/php/etc/php-fpm.conf.default /Data/apps/php/etc/php-fpm.conf


  5、编译安装PHP扩展
wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
tar zxvf autoconf-latest.tar.gz
cd autoconf-2.69/
./configure --prefix=/Data/apps/libs
make
make install
cd ../

wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar zxvf memcache-2.2.7.tgz
cd memcache-2.2.7/
export PHP_AUTOCONF="/Data/apps/libs/bin/autoconf"
export PHP_AUTOHEADER="/Data/apps/libs/bin/autoheader"
/Data/apps/php/bin/phpize
./configure --with-php-config=/Data/apps/php/bin/php-config
make
make install
cd ../


  打开 /Data/apps/php/etc/php.ini 查找 ; extension_dir = "ext"
  在其后增加一行:
extension = "memcache.so"


Tags: , , , ,



技术大类 » Web服务器 | 评论(295) | 引用(0) | 阅读(253763)
dhrehdwk
2023-12-15 01:03
Seaweed is rich in antioxidants, such as carotenoids and flavonoids, which help neutralize free위대한유산폭풍의언덕오만과편견
dhrehdwk
2023-12-15 01:03
radicals and protect cells from oxidative stress.Omega-3 Fatty Acids:마카효능홍차효능아몬드효능와인효능
dhrehdwk
2023-12-15 01:03
Certain seaweeds, like nori, contain omega-3 fatty acids, which are beneficial for heart health and cognitive function.대파효능계피효능딸기효능살구효능
dhrehdwk
2023-12-15 01:03
Seaweeds, including brown seaweeds like kelp, contain compounds like fucoidans that exhibit양파효능죽염효능보이차효능
dhrehdwk
2023-12-15 01:04
The fiber content in seaweed may contribute to a feeling of fullness, potentially aiding in weight오렌지효능카레효능토마토효능옥수수효능
dhrehdwk
2023-12-15 01:04
management by reducing overall calorie intake.우유효능땅콩효능강황효능양배추효능
dhrehdwk
2023-12-15 01:04
Excessive iodine intake from seaweed, especially for individuals with iodine sensitivity or thyroid disorders, can lead to adverse effects. It's crucia고사리효능복숭아효능브로콜리효능코코넛효능
dhrehdwk
2023-12-15 01:04
l to monitor iodine intake and consult with a healthcare professional.녹차효능마늘효능귀리효능쑥효능
dhrehdwk
2023-12-15 01:04
Seaweed can absorb heavy metals from the water. Regular consumption, especially from unknown비름나물효능가물치효능위험물기능사코코아효능
Alexjuvion Email
2024-1-2 20:20
We specialize in delivering customized solutions for university assignments, taking into account the unique requirements of each task. Quality Assignment's university assignment help UK ensures that every piece of work is tailored to the specific guidelines provided by the student, resulting in personalized and original content.
Lucky cola
2024-2-7 13:10
Embark on epic quests and conquer virtual worlds.
Lucky cola
DianaNovita Email
2024-2-27 17:23
Terima kasih atas kepercayaan Anda dalam memilih situs slot online terbaru kami sebagai pilihan bermain Anda. Kami berkomitmen untuk memberikan pengalaman yang luar biasa bagi setiap pemain. Dalam koleksi permainan slot kami, Anda akan menemukan berbagai pilihan permainan dewa poker menarik dengan grafis yang memukau, animasi yang mengesankan, dan efek suara yang menghidupkan suasana. Selain itu, kami juga menyediakan fitur bonus yang menggiurkan, termasuk putaran gratis, simbol liar, dan fitur bonus interaktif untuk meningkatkan peluang Anda meraih kemenangan besar. Kami juga memberikan perhatian khusus pada keamanan data dan transaksi, sehingga Anda dapat bermain dengan tenang dan nyaman. Jika Anda memiliki pertanyaan atau membutuhkan bantuan, tim dukungan pelanggan kami siap membantu Anda dengan cepat dan profesional. Bergabunglah dengan komunitas kami yang penuh semangat dan buktikan kemampuan Anda dalam meraih kemenangan yang mengesankan. Daftar sekarang dan nikmati petualangan slot yang tak terlupakan di situs kartu poker kami!
essayghostwriting Email Homepage
2024-5-6 14:51
要确保选择靠谱的留学生论文代写 https://www.essayghostwriting.com/ 服务,有几个关键点需要注意。首先,选择有信誉和口碑的代写机构。通过查阅评价和咨询他人的意见,了解代写机构的专业背景和客户反馈,可以更好地评估其靠谱程度。其次,要求代写机构提供样例论文来评估其质量和风格是否符合要求。此外,与代写机构的沟通也是一个重要的环节,可以通过与代写机构的面谈或电话交流,了解他们的工作方式、写手团队和售后服务,判断其是否靠谱可信。
LaurenDesouza Email
2024-6-5 14:39
I learned about lot on  Nginx 0.8.x + PHP 5.2.13. this is the best places to learn about such computer program based topics.

Laure,
Enhance your job prospects with expertly crafted CVs by CV Folks who offers CV help, tailored to highlight your unique skills and experiences.
meeloun Email
2024-6-12 09:54
了解专业加拿大网课代修   http://www.wangkedaixiu.com/wkdx/ca/      机构的服务流程,必须从初步咨询和需求沟通开始。学生在决定使用代修服务之前,需要与代修机构进行详细的初步咨询。这通常包括通过电话、邮件或在线聊天工具与机构的客服人员沟通,明确表达自己的需求和具体情况。学生需要提供详细的课程信息,包括课程名称、学科领域、授课教师、课程大纲、作业和考试安排等。此外,学生还应明确自己的目标和期望,例如希望达到的成绩水平和具体的时间安排。通过详细的初步咨询和沟通,代修机构可以全面了解学生的需求,提供初步的服务建议和报价。
分页: 15/15 第一页 上页 10 11 12 13 14 15 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]