当前位置: 首页 > news >正文

梨树做网站网站建设方案报价单

梨树做网站,网站建设方案报价单,东莞网页设计与制作,网站建设投标书怎么制作转载链接#xff1a;http://www.cnblogs.com/kerrycode/p/3261101.html Apache简介 Apache HTTP Server#xff08;简称Apache#xff09;是Apache软件基金会的一个开放源码的网页服务器#xff0c;可以在大多数计算机操作系统中运行#xff0c;由于其多平台和安全性被广…转载链接http://www.cnblogs.com/kerrycode/p/3261101.html Apache简介           Apache HTTP Server简称Apache是Apache软件基金会的一个开放源码的网页服务器可以在大多数计算机操作系统中运行由于其多平台和安全性被广泛使用是最流行的Web服务器端软件之一。它快速、可靠并且可通过简单的API扩展将Perl/Python等解释器编译到服务器中。关于更多Apache的介绍可以参考百科“http://baike.baidu.com/view/28283.htm或官网http://www.apache.org/ 或 http://httpd.apache.org/的介绍   Apache软件下载   Apache的相关软件包下载地址http://apr.apache.org/projects.html 1.   Apache HTTP Server     截止目前为止Apache HTTP Server 目前最新的版本是 Apache httpd 2.4.6 Released 下载地址http://httpd.apache.org/download.cgi#apache24 2.   APR and APR-Util包     截止目前为止APR and APR-Util的最新版本如下下载地址http://apr.apache.org/download.cgi APR 1.4.8, released June 21, 2013APR-util 1.5.2, released April 4, 2013APR-iconv 1.2.1, released November 26, 2007 3.   PCRE包    截止目前为止PCRE最新的包为8.33下载地址如下 https://sourceforge.net/projects/pcre/files/pcre/     可以下载了相关安装包上传到/root/kerry这个临时目录。也可以直接通过wget下载 Apache安装要求 下面是官方文档的要求必须安装APR、APR-Util、PCREgcc-c等包文档URL地址http://httpd.apache.org/docs/2.4/install.html   Requirements The following requirements exist for building Apache httpd: APR and APR-Util Make sure you have APR and APR-Util already installed on your system. If you dont, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configures --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util. Perl-Compatible Regular Expressions Library (PCRE) This library is required but not longer bundled with httpd. Download the source code from http://www.pcre.org, or install a Port or Package. If your build system cant find the pcre-config script installed by the PCRE build, point to it using the --with-pcre parameter. On some platforms, you may have to install the corresponding -dev package to allow httpd to build against your installed copy of PCRE. Disk Space Make sure you have at least 50 MB of temporary free disk space available. After installation the server occupies approximately 10 MB of disk space. The actual disk space requirements will vary considerably based on your chosen configuration options, any third-party modules, and, of course, the size of the web site or sites that you have on the server. ANSI-C Compiler and Build System Make sure you have an ANSI-C compiler installed. The GNU C compiler (GCC) from the Free Software Foundation (FSF) is recommended. If you dont have GCC then at least make sure your vendors compiler is ANSI compliant. In addition, your PATH must contain basic build tools such as make. Accurate time keeping Elements of the HTTP protocol are expressed as the time of day. So, its time to investigate setting some time synchronization facility on your system. Usually thentpdate or xntpd programs are used for this purpose which are based on the Network Time Protocol (NTP). See the NTP homepage for more details about NTP software and public time servers. Perl 5 [OPTIONAL] For some of the support scripts like apxs or dbmmanage (which are written in Perl) the Perl 5 interpreter is required (versions 5.003 or newer are sufficient). If you have multiple Perl interpreters (for example, a systemwide install of Perl 4, and your own install of Perl 5), you are advised to use the --with-perl option (see below) to make sure the correct one is used by configure. If no Perl 5 interpreter is found by the configure script, you will not be able to use the affected support scripts. Of course, you will still be able to build and use Apache httpd.   Apache安装过程   Step 1安装包gcc或gcc-c [rootgetlnx05 pcre-8.33]# yum list gcc-c Loaded plugins: product-id, security, subscription-manager Updating Red Hat repositories. Available Packages gcc-c.x86_64                                                               4.1.2-51.el5                                                                rhel-debuginfo [rootgetlnx05 pcre-8.33]# yum list gcc Loaded plugins: product-id, security, subscription-manager Updating Red Hat repositories. Installed Packages gcc.x86_64                                                                    4.1.2-51.el5                                                                    installed [rootgetlnx05 pcre-8.33]# rpm -q gcc gcc-4.1.2-51.el5 从上面可见gcc包已经安装缺少gcc-c包那么接下来安装包gcc-c,如果此处不安装该包后面安装过程中会报错 [rootgetlnx05 pcre-8.33]#yum install  gcc-c   Step 2安装包APR和APR-Util [rootgetlnx05 kerry]# ls apr* apr-1.4.8.tar.gz  apr-util-1.5.2.tar.gz [rootgetlnx05 kerry]# [rootgetlnx05 kerry]# tar -zxf apr-1.4.8.tar.gz [rootgetlnx05 kerry]# cd apr-1.4.8 [rootgetlnx05 apr-1.4.8]# ls 新建目录/usr/local/apr用作安装目录 [rootgetlnx05 apr-1.4.8]# mkdir /usr/local/apr [rootgetlnx05 apr-1.4.8]# ./configure --prefix/usr/local/apr [rootgetlnx05 apr-1.4.8]# make [rootgetlnx05 apr-1.4.8]# make install 安装完成后可以验证一下 [ rootgetlnx05 apr]# ls -lrt total 32 drwxr-xr-x 3 root root 4096 Aug 15 06:57 include drwxr-xr-x 3 root root 4096 Aug 15 06:57 lib drwxr-xr-x 2 root root 4096 Aug 15 06:57 build-1 drwxr-xr-x 2 root root 4096 Aug 15 06:57 bin [rootgetlnx05 kerry]# mkdir /usr/local/apr-util [rootgetlnx05 kerry]# tar -zxf apr-util-1.5.2.tar.gz [rootgetlnx05 kerry]# cd apr-util-1.5.2 [rootgetlnx05 apr-util-1.5.2]# ./configure --prefix/usr/local/apr-util --with-apr/usr/local/apr/bin/apr-1-config [rootgetlnx05 apr-util-1.5.2]# make [rootgetlnx05 apr-util-1.5.2]# make install   Step 3安装包PRCE [rootgetlnx05 kerry]# unzip pcre-8.33.zip [rootgetlnx05 kerry]# cd pcre-8.33 [rootgetlnx05 kerry]#mkdir /usr/local/pcre [rootgetlnx05 pcre-8.33]# ./configure --prefix /usr/local/pcre--with-apr/usr/local/apr/bin/apr-1-config [rootgetlnx05 pcre-8.33]# make [rootgetlnx05 pcre-8.33]# make install   Step 4安装Apache Http Server [rootgetlnx05 kerry]# tar zxvf httpd-2.4.6.tar.gz [rootgetlnx05  kerry]#cd httpd-2.4.6 [rootgetlnx05 httpd-2.4.6]# ./configure --prefix/usr/local/apache --with-pcre/usr/local/pcre --with-apr/usr/local/apr --with-apr-util/usr/local/apr-util [rootgetlnx05 httpd-2.4.6]#make [rootgetlnx05 httpd-2.4.6]#make install Step 5启动Apache服务 [rootgetlnx05 httpd-2.4.6]#  /usr/local/apache/bin/apachectl start 用浏览器访问http://localhost时提示It works!     Apache安装问题锦集   问题1缺少包gcc-c导致安装包apr-util不通过   [rootgetlnx05 kerry]# unzip pcre-8.33.zip [rootgetlnx05 kerry]# cd pcre-8.33 [rootgetlnx05 pcre-8.33]# ./configure --prefix/usr/local/apr-util -with-apr/usr/local/apr/bin/apr-1-config 一般出现这个错误是因为没有安装包gcc-c,可以通过如下命令检查 [rootgetlnx05 pcre-8.33]# yum list gcc-c Loaded plugins: product-id, security, subscription-manager Updating Red Hat repositories. Available Packages gcc-c.x86_64                                                               4.1.2-51.el5                                                                rhel-debuginfo [rootgetlnx05 pcre-8.33]# yum list gcc Loaded plugins: product-id, security, subscription-manager Updating Red Hat repositories. Installed Packages gcc.x86_64                                                                    4.1.2-51.el5                                                                    installed [rootgetlnx05 pcre-8.33]# rpm -q gcc gcc-4.1.2-51.el5 [rootgetlnx05 pcre-8.33]# rpm -q gcc-c   问题2checking for APR-util... configure: error: the --with-apr-util parameter is incorrect [rootgetlnx05 httpd-2.4.6]#  ./configure --prefix/usr/local/apache  --with-apr/usr/local/apr --with-apr-util/usr/local/apr-util checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... yes   setting CC to gcc   setting CPP to gcc -E   setting CFLAGS to -g -O2 -pthread   setting CPPFLAGS to -DLINUX -D_REENTRANT -D_GNU_SOURCE   setting LDFLAGS to configure: configure: Configuring Apache Portable Runtime Utility library... configure: checking for APR-util... configure: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file. [rootgetlnx05 httpd-2.4.6]# 一般是由于APR-util没有安装成功可以通过验证该目录是否为空来判断因为你有时候执行了make忘了执行make isntall命令有可能导致这个错误。 [rootgetlnx05 apr]# cd /usr/local/apr-util [rootgetlnx05 apr-util]# ls   问题3没有指定PCRE参数 [rootgetlnx05 httpd-2.4.6]#  ./configure --prefix/usr/local/apache  --with-apr/usr/local/apr --with-apr-util/usr/local/apr-util checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... yes   setting CC to gcc   setting CPP to gcc -E   setting CFLAGS to -g -O2 -pthread   setting CPPFLAGS to -DLINUX -D_REENTRANT -D_GNU_SOURCE   setting LDFLAGS to configure: configure: Configuring Apache Portable Runtime Utility library... configure: checking for APR-util... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for gcc option to accept ISO C99... -stdgnu99 checking for pcre-config... false configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ [rootgetlnx05 httpd-2.4.6]#   问题4安装前忘了先安装APR相关包 [rootgetlnx05 httpd-2.4.6]#  ./configure --prefix/usr/local/appache/ checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... no configure: error: APR not found.  Please read the documentation. [rootgetlnx05 httpd-2.4.6]#   问题5启动服务时报错 [rootgetlnx05 httpd-2.4.6]#  /usr/local/apache/bin/apachectl start AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using getlnx05.gfg1.esquel.com. Set the ServerName directive globally to suppress this message 这个时候需要编辑httpd.conf配置文件添加SeraverName的具体IP地址。如下所示 [rootgetlnx05 conf]# cd /usr/local/apache/conf/ [rootgetlnx05 conf]# ls extra  httpd.conf  magic  mime.types  original [rootgetlnx05 conf]# vi httpd.conf ServerAdmin youexample.com # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesnt have a registered DNS name, enter its IP address here. # #ServerName www.example.com:80 ServerName 192.168.9.122:80 # # Deny access to the entirety of your servers filesystem. You must # explicitly permit access to web content directories in other # Directory blocks below. # httpd.conf 502L, 18179C written [rootgetlnx05 conf]# /usr/local/apache/bin/apachectl restart httpd not running, trying to start [rootgetlnx05 conf]# /usr/local/apache/bin/apachectl start httpd (pid 7797) already running 如果从其它电脑连接访问Apache时输入url地址http://192.168.9.122页面没有显示正常而上面配置也OK那么你必须关闭防火墙有时候甚至需要重启电脑才能OK,重启Apache服务都无效。 [rootgetlnx05 conf]# chkconfig iptables off [rootgetlnx05 conf]# chkconfig iptables off [rootgetlnx05 conf]# /usr/local/apache/bin/apachectl restart [rootgetlnx05 conf]# /usr/local/apache/bin/apachectl restart [rootgetlnx05 conf]#   作者潇湘隐者 出处http://www.cnblogs.com/kerrycode/ 本文版权归作者和博客园共有欢迎转载但未经作者同意必须保留此段声明且在文章页面明显位置给出原文连接.
http://www.sadfv.cn/news/373731/

相关文章:

  • 免费做微信链接的网站吗百度电商平台app
  • wordpress 建站很简单绍兴网站建设方案书
  • 免费php模板网站潍坊市建设局官方网站
  • 抚顺市 网站建设网页版微信地址
  • 织梦网站模板如何安装教程网站建设的总体目标考核指标
  • 做盗版网站的wordpress打开
  • 律师做网站有用开发直播软件流程
  • 自动化科技产品网站建设网站设计公司营销crm系统
  • 承接做网站的网站荆门seo
  • 全国网站备案查询私人公司怎么做网站
  • 用手机做网站服务器苏州市城乡和建设局网站
  • 网站排名查询系统电商网站成本
  • 上海网站开发兼职建设网站的题目
  • 什么是网络营销的技术seo网站代码优化
  • 电子商务网站备案从哪个网站设置宽带主机
  • 做推广送网站免费建站建立网站英文翻译
  • 织梦程序如何搭建网站西安wordpress主题
  • 做类型网站母婴网站模板dede
  • 网站建设运营有限公司网站建设基本问题
  • 濮阳做网站的网络服务商是指什么
  • 简约wordpress免费主题官网seo关键词排名系统
  • 做网站前两个月应该干什么深圳网站设计优异刻
  • 企业怎么做网站推广物流网站首页图片
  • 好康的网站代码网站建设静态部分报告总结
  • 整形网站开发证明做二维码打款网站链接
  • 网站建设按钮网站推广员能力要求
  • 中文网站站内优化怎么做西安购物网站建设
  • 怎样制作自己公司的网站辽宁省建设工程信息网电子保函
  • 网站设计策划书云相册网站怎么做
  • 做网站工资高么用php做购物网站案例