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

专业俄文网站建设企业网站建立要做的准备

专业俄文网站建设,企业网站建立要做的准备,免费网站收录,手机网页打不开Web网站服务(一)http.conf中的全局配置ServerRoot#xff1a;用于设置httpd服务的根目录#xff0c;该目录中包括运行Web站点必须的目录和文件。默认根目录为#xff1a;/usr/local/apache2Listen#xff1a;用于设置Apache服务器监听的网络端口号#xff0c;默认为80User…Web网站服务(一)http.conf中的全局配置ServerRoot用于设置httpd服务的根目录该目录中包括运行Web站点必须的目录和文件。默认根目录为/usr/local/apache2Listen用于设置Apache服务器监听的网络端口号默认为80User用于设置运行httpd进程的用户身份。Group用于设置运行httpd的进程的组身份ServerAdmin:用于设置Apache2服务器管理员的E-mail地址可通过此E-mail地址及时联系Apache服务器的管理员。ServerName用于设置Apache服务器的完整主机名DocumentRoot用于设置网业文档的在系统中的实际路径。DirectoryIndex用于设置网站的默认索引页(首页)ErrorLog用于设置错误日志文件的路径和文件名默认设置为/logs/error_logLogLevel用于设置记录日志的级别默认为Warm(警告)CustmoLog:用于设置Apache服务器的访问日志文件的路径和格式类型。PidFile用于保存httpd服务器的程序进程号(PID)的文件默认设置为/logs/httpd.pidTimeout用于设置Web服务器与浏览器之间网络连接的超时秒数默认为300秒KeepAlive用于设置是否使用保持连接功能设置为ON时将提高服务器响传输文件的效率MaxKeepAliveRequests用于设置客户端每次连接允许请求响应的最大文件个数默认为100个KeepAliveTimeout用于设置保持连接的超时秒数默认是15秒Include用于包含另一个配置文件的内容可以将实现一些特殊功能的配置单独放到一个文件里再使用Include配置项包含到httpd.conf主配置文件中来便于独立维护编译安装apache1、关闭防火墙[roots2~]# service iptables stop2、查看IP[roots2~]# ifconfig eth0eth0 Link encap:Ethernet HWaddr00:0C:29:C5:EC:ACinet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.03、查看主机名[roots2~]# hostnames2.benet.com4 卸载httpd并且将源码包解压rpm -ehttpd httpd-manual webalizer subversion mod_python mod_ssl mod_perlphp php-common mysql dovecot –nodepstar xzfhttpd-2.2.17.tar.gz -C/usr/src/ //将源码包解压到了/usr/src5、编译安装apache[roots2httpd-2.2.17]# ./configure --prefix/usr/local/httpd --enable-so--enable-rewrite --enable-charset-lite make make install6、查看安装的结果[roots2 httpd]# ls /usr/local/httpd/bin build cgi-bin conf error htdocs icons include lib logs man manual modules那么httpd的执行目录就在/usr/local/httpd/bin/这个目录下但是这样我会觉得很冗余所以用以前讲过的ln来连接[roots2 httpd]# ln -s /usr/local/httpd/bin/*/usr/local/bin/[roots2 /]#httpd -v7、添加服务添加服务识别配置[roots2 /]# cp/usr/local/httpd/bin/apachectl /etc/init.d/httpdVi/et c/init.d/httpd#chkconfig: 35 85 15#description: httpd start server[roots2 /]# chkconfig --add httpd[roots2 /]# chkconfig --list httpdhttpd 0:关闭1:关闭2:关闭3:启用4:关闭5:启用6:关闭[roots2 /]# chkconfig --level 35 httpdon[roots2 /]#8 如果你是基于dns做的那么可以添加域名Vi/usr/local/httpd/conf/httpd.confServerName www.benet.com:80检查httpd的语法错误[roots2 /]# /usr/local/httpd/bin/apachectl-tSyntaxOK9启动httpd服务/etc/init.d/httpd start验证是否开启服务[roots2 /]# netstat -natp | grephttpdtcp 0 0:::80 :::* LISTEN 29040/httpd10测试时候成功本机测试Xp远程测试(是建立在域名访问)使用awstats分析日志1、解压并释放awstats软件包执行目录中的awstats_confirure.pl脚步进行安装[roots2/]# unzip awstats-7.0.zip[roots2/]# mv awstats-7.0 /usr/local/awstats[roots2tools]# cd /usr/local/awstats/tools/[roots2tools]# ./awstats_configure.pl-----AWStats awstats_configure 1.0 (build 1.9) (c) Laurent Destailleur-----This toolwill help you to configure AWStats to analyze statisticsforone webserver. You can try to use it to let it do all that ispossiblein AWStatssetup, however following the step by step manual setupdocumentation (docs/index.html) is often a better idea.Above all if:- You arenot an administrator user,- You wantto analyze downloaded log files without web server,- You wantto analyze mail or ftp log files instead of web logfiles,- You needto analyze load balanced servers log files,- You wantto understand all possible ways to use AWStats...Read theAWStats documentation (docs/index.html).-----Running OS detected: Linux, BSD or Unix-----Check for web server installEnter fullconfig file path of your Web server.Example:/etc/httpd/httpd.confExample:/usr/local/apache2/conf/httpd.confExample:c:\Program files\apache group\apache\conf\httpd.confConfigfile path (none to skip web server setup):/usr/local/httpd/conf/httpd.conf //这个是apache的主配置文件路径-----Check and complete web server config file/usr/local/httpd/conf/httpd.confWarning:You Apache config file contains directives to write common logfilesThis meansthat some features cant work (os, browsers and keywordsdetection).Do youwant me to setup Apache to write combined log files [y/N]? y //设置日志类型默认yAdd Alias /awstatsclasses/usr/local/awstats/wwwroot/classes/Add Alias /awstatscss/usr/local/awstats/wwwroot/css/Add Alias /awstatsicons/usr/local/awstats/wwwroot/icon/Add ScriptAlias /awstats//usr/local/awstats/wwwroot/cgi-bin/Add directiveAWStats directives added to Apacheconfig file.-----Update model config file/usr/local/awstats/wwwroot/cgi-bin/awstats.model.confFile awstats.model.confupdated.-----Need to create a new config file ?Do youwant me to build a new AWStats config/profilefile(required if first install) [y/N] ? y //设置站点配置文件-----Define config file name to createWhat isthe name of your web site or profile analysis ?Example:www.mysite.comExample:demoYour website, virtual server or profile name: www.benet.com //你要统计网站的名称-----Define config file pathIn whichdirectory do you plan to store your config file(s) ?Default:/etc/awstatsDirectorypath to store config file(s) (Enter for default):以后的内容直接回车就可以完成配置了2、修改awstats.www.benet.conf的配置文件[roots2tools]# vi /etc/awstats/awstats.www.benet.com.conf第51行修改日志保存的位置LogFile/usr/local/httpd/logs/access_log3、创建数据库的存放目录并更新数据库[roots2tools]# mkdir /var/lib/awstats[roots2tools]#/usr/local/awstats/tools/awstats_updateall.pl //执行更新脚本重新读取刚才设置的日志路径Running/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update-configwww.benet.com -configdir/etc/awstats to update configwww.benet.comCreate/Update database for config/etc/awstats/awstats.www.benet.com.conf by AWStats version 7.0(build 1.971)From datain log file /usr/local/httpd/logs/access_log...Phase 1 :First bypass old records, searching new record...Searchingnew records from beginning of log file...Jumpedlines in file: 0Parsedlines in file: 2Found 0 dropped records,Found 0 comments,Found 0 blank records,Found 2 corrupted records,Found 0 old records,Found 0 new qualified records.4、写入周期性计划任务定期统计[roots2tools]# crontab -l0 0 * * 1/usr/local/awstats/tools/awstats_updateall.plnow写入周期性计划任务[roots2tools]#5、访问测试[roots2 awstats]# /etc/init.d/httpdrestart重启一下httpd服务6、做网站的授权访问编辑httpd.conf配置文件查找关于awstats的目录区域设置添加认证授权设置Options FollowSymLinksAllowOverride NoneOrder deny,allowDenyfrom allAuthName AWSTATSAuthType BasicAuthUserFile /usr/local/awstats/wwwroot/.htpasswdrequire valid-userAuthName定义受保护的领域名称将在弹出的认证登陆对话框中显示AuthType设置认证的类型Basic为基本认证AuthUserFile设置用于保存用户账号、密码的认证文件路径requirevalid-user 授权给认证文件中的所有有效用户。创建存储认证用户及账号口令的文件[roots2~]# cd /usr/local/httpd/bin/[roots2bin]# ./htpasswd -c/usr/local/awstats/wwwroot/.htpasswd wodeNewpassword:Re-typenew password:Addingpassword for user wode、重启httpd服务[roots2 ~]# /etc/init.d/httpd restart结果
http://www.zqtcl.cn/news/857411/

相关文章:

  • 用wordpress建立电商网站用Off做网站
  • 网站建设公司不赚钱ui设计软件培训学校
  • 网站项目策划书模板wordpress修改模版
  • 房地产手机网站模板电脑建立网站
  • 网站自适应手机代码网络服务机构的网站
  • 系统网站重庆智能建站模板
  • wordpress适合优化吗宝塔 wordpress优化
  • 怎么利用网站做外链接怎样做公司网站介绍
  • 广州网站优化渠道木门网站模板
  • 手机网站菜单设计wordpress加联系方式
  • 网站管理助手怎么使用多种郑州网站建设
  • 汉中网站建设费用外贸网站服务商
  • 苏宿工业园区网站建设成功案例色流网站如何做
  • 北沙滩网站建设公司电子商务网站建设管理论文
  • 公司备案证查询网站查询系统网页设计html代码大全及含义
  • 成都开发网站建设做网站一般会出现的问题
  • 企业网站设计布局方式如何在社交网站上做视频推广方案
  • 惠城网站建设服务做1688网站需要懂英语吗
  • 请人做网站要多少钱搜索引擎优化概述
  • 郑州中森网站建设免费网站app生成软件
  • 做诚信通网站seo新手快速入门
  • 做网站怎么去找客户带会员中心WordPress免费主题
  • 网站建设资费安平县护栏网站建设
  • 做视频网站侵权吗个体户网站备案
  • 苏州姑苏区建设局网站智慧团建登录官网手机版
  • 如何搭建一个视频网站广告制作方案
  • 网站策划ps苏州建站公司速找苏州聚尚网络
  • 网站备案 关闭客户制作网站时的问题
  • 项目网站分析推荐做ppt照片的网站
  • wordpress注明网站网站建设需要什么手续