利用LNMP平台构建Discuz!论坛及其他PHP网站.docxVIP

利用LNMP平台构建Discuz!论坛及其他PHP网站.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
利用LNMP平台构建Discuz!论坛及其他PHP网站

本次部署系统版本:Redhat Enterprise 6//需要的软件包(可能还需要其他依赖软件包,rpm安装即可)mysql-5.0.56.tar.gznginx-1.2.0.tar.gzphp-5.3.10.tar.gz为什么要选择使用nginx?Nginx (engine x) 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。2011年6月1日,nginx 1.0.4发布。//从/下载软件包,最好不要选择最新的版本。Tar ./configure make make install[root@localhost nginx-1.2.0]# groupadd nginx[root@localhost nginx-1.2.0]# useradd -s /sbin/nologin -M -g nginx nginx[root@localhost ~]# tar zxvf nginx-1.2.0.tar.gz[root@localhost ~]# cd nginx-1.2.0[root@localhost nginx-1.2.0]# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module(会有一系列的依赖关系解决方法下面)--prefix=/usr/local/nginx指定安装 目录--user=nginx指定用户身份--group=nginx指定组身份--with-http_ssl_module启用https支持[root@localhost nginx-1.2.0]# make make install[root@localhost nginx-1.2.0]# /usr/local/nginx/sbin/nginx(开启服务)[root@localhost nginx-1.2.0]# iptables -I INPUT -p tcp --dport 80 -j ACCEPTNginx web 就可以正常访问了Error./configure: error: C compiler gcc is not found[root@localhost nginx-1.2.0]# yum -y install gcc gcc-c++./configure: error: the HTTP rewrite module requires the PCRE library.[root@localhost nginx-1.2.0]# yum -y install pcre pcre-devel./configure: error: SSL modules require the OpenSSL library.[root@localhost nginx-1.2.0]# yum -y install openssl openssl-devel作为一个动态网站开发使用, nginx自身是做不到的, 数据库我们选择用mysql[root@localhost ~]# useradd -s /sbin/nologin -M mysql[root@localhost ~]# tar zxvf mysql-5.0.56.tar.gz[root@localhost ~]# cd mysql-5.0.56[root@localhost mysql-5.0.56]# ./configure --prefix=/usr/local/mysql[root@localhost mysql-5.0.56]# make make install安装后配置[root@localhost mysql-5.0.56]# cp support-files/f /etc/f[root@localhostmysql-5.0.56]#/usr/local/mysql/bin/mysql_install_db --user=mysql[root@localhost mysql-5.0.56]# chown -R root:mysql /usr/local/mysql/[root@localhost mysql-5.0.56]# chown -R mysql /usr/local/mysql/v

文档评论(0)

xcs88858 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档