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

河南省住房和建设厅网站首页注册公司需要哪些条件

河南省住房和建设厅网站首页,注册公司需要哪些条件,秦皇岛网站开发费用,小程序制作策划案我将提供两种方法来安装smokeping#xff0c;一种是大家常用的普通安装#xff0c;另一种是用脚本下自动化安装的#xff0c;仅供大家学习#xff0c;参考!普通安装#xff1a;centos 5.4下安装smokeping需要的软件:(1)httpd(2)rrdtool(3)smokeping(4)fping(5)libwww-perl… 我将提供两种方法来安装smokeping一种是大家常用的普通安装另一种是用脚本下自动化安装的仅供大家学习参考!普通安装centos 5.4下安装smokeping需要的软件:(1)httpd(2)rrdtool(3)smokeping(4)fping(5)libwww-perl安装rrdtool前的准备工作/etc/yum.repos.d/dag.repo[dag]nameDag RPM Repository for Red Hat Enterprise Linuxbaseurlhttp://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck1gpgkeyhttp://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txtenabled1yum  -y install  freetype-devel zlib-devel libpng-devel libart_lgpl-devel rrdtool#Install httpduseradd wwwtar zxvf httpd-2.2.15.tar.gzcd httpd-2.2.15./configure --prefix/usr/local/apache2 --enable-somake make installwget http://fping.sourceforge.net/download/fping.tar.gz#Install fpingtar zxvf fping.tar.gzcd fping-2.4b2_to/./configure make make install wget http://daemoninc.com/SpeedyCGI/CGI-SpeedyCGI-2.22.tar.gz#Install CGI-SpeedyCGItar –zxvf CGI-SpeedyCGI-2.22.tar.gzcd CGI-SpeedyCGI-2.22perl Makefile.PLCompile mod_speedycgi (default no)? nomake make install#Install Perl modules libwww-perlwget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.836.tar.gztar -zxvf libwww-perl-5.836.tar.gzcd libwww-perl-5.836perl Makefile.PLmake make installwget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.2.tar.gztar -zxvf smokeping-2.4.2.tar.gzmv smokeping-2.4.2 /usr/local/smokeping修改smokepinghttpd配置文件mkdir –p /usr/local/smokeping/htdocs/imgmkdir –p /usr/local/smokeping/varsmokeping/bin下mv smokeping.dist smokepingfile: smokepinguse lib qw(/usr/lib/perl5);use lib qw(/usr/local/smokeping/lib);Smokeping::main(/usr/local/smokeping/etc/config);smokeping/etcmv config.dist configfile:config*** General ***owner    Peter Randomcontact  someaddress.nowheremailhost my.mail.host#sendmail /usr/lib/sendmail# NOTE: do not put the Image Cache below cgi-bin# since all files under cgi-bin will be executed ... this is not# good for p_w_picpaths.imgcache /usr/local/smokeping/htdocs/imgimgurl   http://本机IP/img datadir  /usr/local/smokeping/varpiddir  /usr/local/smokeping/varcgiurl   http://本机IP/smokeping.cgismokemail /usr/local/smokeping/etc/smokemail.disttmail /usr/local/smokeping/etc/tmail.dist# specify this to get syslog loggingsyslogfacility local0# each probe is now run in its own process# disable this to revert to the old behaviour# concurrentprobes no*** Alerts ***to alerteeaddress.somewherefrom smokealertcompany.xysomelosstype loss# in percentpattern 0%,*12*,0%,*12*,0%comment loss 3 times  in a row*** Database ***step     300pings    20# consfn mrhb steps totalAVERAGE  0.5   1  1008AVERAGE  0.5  12  4320    MIN  0.5  12  4320    MAX  0.5  12  4320AVERAGE  0.5 144   720    MAX  0.5 144   720    MIN  0.5 144   720*** Presentation ***template /usr/local/smokeping/etc/basepage.html.dist chartsmenu Chartstitle The most interesting destinations stddevsorter StdDev(entries4)title Top Standard Deviationmenu Std Deviationformat Standard Deviation %f maxsorter Max(entries5)title Top Max Roundtrip Timemenu by Maxformat Max Roundtrip Time %f seconds losssorter Loss(entries5)title Top Packet Lossmenu Lossformat Packets Lost %f mediansorter Median(entries5)title Top Median Roundtrip Timemenu by Medianformat Median RTT %f seconds overview width 600height 50range 10h detailwidth 600height 200unison_tolerance 2Last 3 Hours    3hLast 30 Hours   30hLast 10 Days    10dLast 400 Days   400d# hierarchies# owner#title Host Owner# location#title Location*** Probes *** FPingbinary /usr/local/sbin/fping*** Slaves ***secrets/usr/local/smokeping/etc/smokeping_secrets.distboomerdisplay_nameboomercolor0000ffslave2display_nameanothercolor00ff00*** Targets ***probe FPingmenu Toptitle Network Latency Grapherremark Welcome to the SmokePing website of xxx Company. \         Here you will learn all about the latency of our network. Testmenu Targets#parents owner:/Test/James location:/ Jamesmenu Jamestitle Jamesalerts somelossslaves boomer slave2host james.address MultiHostmenu Multihosttitle James and James as seen from Boomerhost /Test/James /Test/James~boomersmokeping/htdocsmv smokeping.cgi.dist smokeping.cgifile:smokeping.cgiuse lib qw(/usr/lib/perl5/);use lib qw(/usr/local/smokeping/lib);Smokeping::cgi(/usr/local/smokeping/etc/config);httpd添加如下ScriptAlias /smokeping.cgi /usr/local/smokeping/htdocs/smokeping.cgialias /img /usr/local/smokeping/htdocs/imgDirectory /usr/local/smokeping AllowOverride NoneAddHandler cgi-script cgiOptions ExecCGI/Directorychown -R www.www /usr/local/smokeping修改httpd.conf运行权限www启动service iptables stop/usr/local/smokeping/bin/smokeping start/usr/local/apache2/bin/apachectl startps -ef|grep smokeping脚本自动化安装注意在这里有些配置需要本身就有的。如我这个包里分auto_install_smokeping.sh和soft文件夹soft文件夹下有smokeping,apache2,yum文件夹而这些文件夹下又有一些文件总架构如下:auto_install_smokeping.sh                                                                                     ---bin/smokeping                                                      ---smokeping       ----etc/config                                                                                       ----htdocs/smokeping.cgisoft                                                ---apache2            ----conf/httpd.conf                                                       ---yum/dag.repo                                                       fping.tar.gz   httpd-2.2.15.tar.gz等 脚本#!/bin/bash#User Zhuzhengjun#date 2010-06-28#install need root user.if [ whoami ! root ];then        echo Installtion this package needs root user.        exit 1fi#set envPATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binexport PATHPWDpwdexport PWDmkdir -p logsexport LOG_FILE$PWD/logs/install.logexport ERROR_FILE$PWD/logs/error.logexport Soft$PWD/soft#add userecho Add user $LOG_FILEecho Add user $ERROR_FILEif [ grep ^www /etc/passwd|wc -l -eq 0 ] ;thenuseradd www 1 $LOG_FILE 2 $ERROR_FILE#echo wokaosiquba|passwd --stdin www 1 $LOG_FILE 2 $ERROR_FILEelse echo www user is add!fi#add dnsecho Add dns $LOG_FILEecho Add dns $ERROR_FILEif [ grep 202.96.209.5 /etc/resolv.conf |wc -l -eq 0 ] ;thenecho nameserver 202.96.209.5 /etc/resolv.conf 1 $LOG_FILE 2 $ERROR_FILEfi#add yum repos for rrdtoolecho Add yum repos $LOG_FILEecho Add yum repos $ERROR_FILEcp -f $Soft/yum/dag.repo /etc/yum.repos.d/ 1 $LOG_FILE 2 $ERROR_FILE#install rrdtool wget cron ntpecho install rrdtool wget cron ntp $LOG_FILEecho install rrdtool wget cron ntp $ERROR_FILEyum -y install ntp freetype-devel zlib-devel libpng-devel wget vixie-cron rrdtool 1 $LOG_FILE 2 $ERROR_FILEif [ grep NTP_IP /var/spool/cron/root |wc -l -eq 0 ];thenecho 1 * * * * /usr/sbin/ntpdate NTP_IP; hwclock -w 1/dev/null 21 /var/spool/cron/rootfi#install httpdecho Install httpd $LOG_FILEecho Install httpd $ERROR_FILEcd $Softtar zxf httpd-2.2.15.tar.gzcd httpd-2.2.15/./configure --prefix/usr/local/apache2 --enable-so 1 $LOG_FILE 2 $ERROR_FILE[ $? -eq 0 ] make 1 $LOG_FILE 2 $ERROR_FILE[ $? -eq 0 ] make install 1 $LOG_FILE 2 $ERROR_FILE#install fpingecho Install fping $LOG_FILEecho Install fping $ERROR_FILEcd $Soft/tar -zxf fping.tar.gzcd fping-2.4b2_to/./configure 1 $LOG_FILE 2 $ERROR_FILE[ $? -eq 0 ] make 1 $LOG_FILE 2 $ERROR_FILE[ $? -eq 0 ] make install 1 $LOG_FILE 2 $ERROR_FILE#install CGI-SpeedyCGIecho Install CGI-SpeedyCGI $LOG_FILEecho Install CGI-SpeedyCGI $ERROR_FILEcd $Soft/tar -zxf CGI-SpeedyCGI-2.22.tar.gzcd CGI-SpeedyCGI-2.22/perl Makefile.PL ENDEND[ $? -eq 0 ] make 1 $LOG_FILE 2 $ERROR_FILE[ $? -eq 0 ] make install 1 $LOG_FILE 2 $ERROR_FILE#install libwww-perlecho Install libwww-perl $LOG_FILEecho Install libwww-perl $ERROR_FILEcd $Soft/tar -zxf libwww-perl-5.836.tar.gzcd libwww-perl-5.836/perl Makefile.PL 1 $LOG_FILE 2 $ERROR_FILEmake 1 $LOG_FILE 2 $ERROR_FILEmake install 1 $LOG_FILE 2 $ERROR_FILE#install smokepingecho Install smokeping $LOG_FILEecho Install smokeping $ERROR_FILEcd $Soft/tar -zxf smokeping-2.4.2.tar.gzmv smokeping-2.4.2 /usr/local/smokeping 1 $LOG_FILE 2 $ERROR_FILEmkdir -p /usr/local/smokeping/htdocs/imgmkdir -p /usr/local/smokeping/var#config smokepingecho Config smokeping $LOG_FILEecho Config smokeping $ERROR_FILEcp -f $Soft/smokeping/bin/smokeping /usr/local/smokeping/bin/ 1 $LOG_FILE 2 $ERROR_FILEcp -f $Soft/smokeping/etc/config /usr/local/smokeping/etc/ 1 $LOG_FILE 2 $ERROR_FILEcp -f $Soft/smokeping/htdocs/smokeping.cgi /usr/local/smokeping/htdocs/ 1 $LOG_FILE 2 $ERROR_FILEcp -f $Soft/apache2/conf/httpd.conf /usr/local/apache2/conf/ 1 $LOG_FILE 2 $ERROR_FILE#authorizeecho authorize $LOG_FILEecho authorize $ERROR_FILEchown -R www.www /usr/local/smokeping chmod 400 /usr/local/smokeping/etc/smokeping_secrets.distchmod x /usr/local/smokeping/bin/smokepingchmod x /usr/local/smokeping/htdocs/smokeping.cgi#start deamonecho start deamon $LOG_FILEecho start deamon $ERROR_FILE/usr/local/smokeping/bin/smokeping start  1 $LOG_FILE 2 $ERROR_FILE/usr/local/apache2/bin/apachectl start 1 $LOG_FILE 2 $ERROR_FILEservice iptables stopps -ef|grep smokeping 转载于:https://blog.51cto.com/ghostxyj/1962323
http://www.zqtcl.cn/news/249051/

相关文章:

  • 网站建设策划书结束语wordpress付费版
  • 进口网站建设做网站用什么格式的图片
  • 青海省住房和城乡建设部网站进入网站空间
  • 做公司简介的开源网站企业seo多少费用
  • 学校网站建设工作方案昆明做网站词排名优化
  • 镇江企业做网站针对人群不同,网站做细分
  • 个人单页网站建设台州网站建设惠店
  • 专做婚礼logo的网站做搜狗pc网站快速排
  • 北京网站建设公司分享网站改版注意事项做网站需要多大空间
  • 主机网站建设制作天津西青区天气预报
  • 网站没有内容可以备案吗横向网站源码
  • 做的网站浏览器提示不安全站优化
  • dede移动端网站源码电子商务网站建设开题报告
  • 做网站价格多少优质做网站哪家好
  • 网站建设及推广服务的合同范本留言网站建设的报告
  • 工程师招聘网站做网站需要公司资质吗
  • 苏州模板网站建站开网店如何运营和推广
  • 换空间网站备案北京网页设计平台
  • 德德模板网站建设步骤可信的品牌网站建设
  • 网站权重0免费好用的ip代理
  • 赣州建设网站公司敬请期待英文怎么写
  • 可以做多边形背景的网站深圳网站建设 套餐
  • 建设工程的招标网站有哪些长江证券官方网站下载
  • 鹤壁网站建设智能网站建设步骤
  • 建设工程规划许可证在哪个网站查询手机免费推广软件
  • 微信上的网站怎么做的吗网页设计结果分析怎么写
  • 网站电子备案哪个网站做网销更好
  • 做电子商务网站需要什么软件西北舜天建设有限公司网站
  • 怎么做门淘宝网站建筑模板厂
  • 纯静态网站开发做面食的网站