debian/ubuntu 编译安装nginx php

debian/ubuntu 编译安装nginx php

tar -zxvf nginx-1.9.9.tar.gz

apt-get install libpcre3 libpcre3-dev

./configure --prefix=/work/nginx-1.9.9 --with-pcre

make

make install

service iptables stop #关闭防火墙, 可能不需要

修改nginx运行用户为tboqi

抱着log目录可写

.bashrc

alias nginx="sudo /home/tboqi/download/linuxSoft/nginx-1.9.9/sbin/nginx"


582 ./configure --prefix=/home/tboqi/lib/php-5.6.21 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ipv6 --with-mcrypt --with-mysql=mysqlnd --enable-ftp --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --enable-embedded-mysqli --disable-mysqlnd-compression-support --with-pdo-mysql=mysqlnd

583 make

585 ls

586 cd ext/phar/

587 ls

588 cp phar.phar ../../

584 make install


602 cd lib/

604 cd nginx-1.9.9/

606 cd conf/

608 mv nginx.conf nginx.confbak

614 ln -s /home/tboqi/tbqapps/cfg/vbox_centos_v6.8_conf/nginx.conf.1.9.9 nginx.conf

615 mkdir vhost

618 cd vhost/

620 ln -s /home/tboqi/tbqapps/cfg/vbox_centos_v6.8_conf/nginx_vhost/www.tbq.com.conf

633 cd ..

634 cd php-5.6.21/

636 cd lib/

638 mv php.ini php.inibak

639 ln -s ~/tbqapps/cfg/vbox_centos_v6.8_conf/php.ini5.6 php.ini

640 cd ..

643 cd etc/

645 ln -s ~/tbqapps/cfg/vbox_centos_v6.8_conf/php-fpm.conf5.6 php-fpm.conf

649 ./sbin/php-fpm

659 nginx -s reload

http://192.168.56.20/info.php 配置完成

相关推荐
w67820071 天前
Prisma不能优雅的支持DTO,试试Vona ORM吧
linux·运维·ubuntu
DFT计算杂谈2 天前
SCIENTIFIC REPORTS 非 van der Waals可调二维磁性材料设计平台
开发语言·php
凡尘——雨落凡尘2 天前
PHP实战复盘:高并发限流、防刷、验证码、会话安全、CSRF防护导致站点稳定性与安全加固实战
php·csrf 防护·csrf 攻击
2601_965798472 天前
Bostami Portfolio Template Review: Speed, Code & SEO Test
php
qetfw2 天前
Debian Apache2 实战:自定义站点目录、运行用户与 Basic Auth 认证
linux·运维·debian
難釋懷2 天前
Nginx外置缓存-nginx + memcached
nginx·缓存·memcached
PC2005-cloud2 天前
Windows 下 WSL2 + Docker Desktop + Ubuntu 开发环境搭建指南
windows·ubuntu·docker
_张一凡2 天前
Ubuntu 完美安装 FT_SCServo_Debug_Qt 飞特SCS_STS舵机调试工具
linux·ubuntu·舵机调试
ZSTU_呆大鹅2 天前
VMware 虚拟机 + Ubuntu24.04 的缩略图服务冲突
ubuntu
蛊明2 天前
一台老 ThinkPad 的系统博物馆:Windows、Ubuntu、UOS、Kylin多系统共存方案
windows·ubuntu·kylin