安装nginx
来源:互联网 发布:亚马逊优化关键词 编辑:程序博客网 时间:2024/09/21 09:01
安装nginx
由于centos没有默认的nginx软件包,需要启用REHL的附件包
rpm -Uvh http://download.Fedora.RedHat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum -y install nginx
设置开机启动
chkconfig nginx on
由于centos没有默认的nginx软件包,需要启用REHL的附件包
rpm -Uvh http://download.Fedora.RedHat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum -y install nginx
设置开机启动
chkconfig nginx on
null
安装php
下载了一个php5.0.2.tar.gz
# tar -xzvf php5.0.2.tar.gz //解压
# cd php5.0.2 //进入目录
# ./configure //进行配置
出现了一个错误 configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel //linux 下默认支持XML
# ./configure
成功
# make&&make install //安装成功
{
今天编译安装php并使之支持fastcgi,启动时报错[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’。
仔细查看出错提醒,是提示运行fastcgi的用户用户组错误,但是配置文件值默认。
打开配置文件php-fpm.conf,到124行,发现
Unix user of processes
<!-- <value name="user">www</value> -->
Unix group of processes
<!-- <value name="group">www</value> -->
果然,使用的是默认值。取消注释解决该问题。
再次启动,就无[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’的错误
}
安装mysql
下载了一个mysql5.0.2.tar.gz
# tar -xzvf mysql5.0.2.tar.gz //解压
# cd php5.0.2 //进入目录
# ./configure //进行配置
出现了一个错误
# ./configure
成功
# make&&make install
出现一个错误
源码安装 MYSQL ,,MAKE 时 报错。
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/lamp/mysql-5.0.56/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/lamp/mysql-5.0.56'
make: *** [all] 错误 2
解决办法:
yum install -y gcc-c++
# make&&make install //成功
安装php
下载了一个php5.0.2.tar.gz
# tar -xzvf php5.0.2.tar.gz //解压
# cd php5.0.2 //进入目录
# ./configure //进行配置
出现了一个错误 configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel //linux 下默认支持XML
# ./configure
成功
# make&&make install //安装成功
{
今天编译安装php并使之支持fastcgi,启动时报错[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’。
仔细查看出错提醒,是提示运行fastcgi的用户用户组错误,但是配置文件值默认。
打开配置文件php-fpm.conf,到124行,发现
Unix user of processes
<!-- <value name="user">www</value> -->
Unix group of processes
<!-- <value name="group">www</value> -->
果然,使用的是默认值。取消注释解决该问题。
再次启动,就无[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’的错误
}
安装mysql
下载了一个mysql5.0.2.tar.gz
# tar -xzvf mysql5.0.2.tar.gz //解压
# cd php5.0.2 //进入目录
# ./configure //进行配置
出现了一个错误
完整错误信息如下:
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for termcap functions library... configure: error: No curses/termcap library found
原因:
缺少ncurses安装包
解决办法:
下载安装相应软件包
一、如果你的系统是CENTOS系列:
# yum list|grep ncurses
# yum -y install ncurses-devel
# yum install ncurses-devel
# ./configure
成功
# make&&make install
出现一个错误
源码安装 MYSQL ,,MAKE 时 报错。
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/lamp/mysql-5.0.56/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/lamp/mysql-5.0.56'
make: *** [all] 错误 2
解决办法:
yum install -y gcc-c++
# make&&make install //成功
- nginx笔记:nginx安装
- Nginx-----源码安装nginx
- 【nginx】nginx的安装
- 安装Nginx
- nginx安装
- 安装 nginx
- 安装nginx
- 安装 Nginx
- nginx安装
- Nginx安装
- 安装Nginx
- 安装nginx
- nginx安装
- 安装nginx
- Nginx安装
- nginx安装
- nginx安装
- nginx 安装
- 工业自动化软件
- 表单Post&Get两个长度限制问题的分析
- C++指针的一些小实践
- 用Qt开发游戏时一些问题的解决方法(一)
- Python中的集合:set与frozenset用法举例
- 安装nginx
- Two Shadow Rendering Algorithms
- Linux学习笔记(三)--shell脚本中的四大变量
- 命名管道客户端
- 敏捷读书笔记与思考 -- 长期维护
- #Python#Python学习(1)—20130107
- shadow
- MakerBot Industries 推出的3D 打印机
- 关于form标签