记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
WIN2003 + Tomcat 5.5 如何配置多个虚拟主机 设几个环境变量a)          CLASSPATH         = %JAVA_HOME%\libb)          JAVA_HOME        = JDK目录c)          TOMCAT_HOME   =   Tomcat安装目录我们将配置两台虚拟主机,假设域名分别为www.aaa.comwww.bbb.com为了测试方便,请主机的:Win2K/2k3:\\WINNT\system32\drivers\etc\hostsLinux:/etc/hosts注: hosts 为系统隐藏文件 没扩展名文件中增加下面内容,然后检查一下这两个域名是否解析正确。192.168.0.1    www.aaa.com192.168.0.1        www.bbb.com 当然,在生产环境中这样做是不行的,需要的在 DNS 上做相应的域名解析。 二 Tomcat安装Tomcat 的安装不在本文的讨论范围,请参考这里。请确保Tomcat安装正确,不然请不要继续进行下面的配置步骤。将 tomcat 目录下的 webapps 目录在同一目录复制一份,目录名分...
打开Tomcat安装目录下的conf/server.xml文件,找到这行<Engine name="Catalina" defaultHost="你的默认启动域名">上面这行的意思是通过IP直接访问的是你的默认启动域名所指向的目录.然后在</Host>后,</Engine>之前,添加以下内容<Host name="你的域名" appBase="项目在硬盘的物理位置,例如: c:\wwwRoot"       unpackWARs="true" autoDeploy="true"       xmlValidation="false" xmlNamespaceAware="false"><Context path="" docBase="项目在硬盘的物理位置,例如: c:\wwwRoot" reloadable="true" deubg="0" />      </Host>如果还有其他的域名的话,再添加一个<Host></Host>内容就可以了.可以配置N个虚拟主机ubg="0" />      </Host>如果还有其他的域名的话,再添...
OpenVZ+HyperVM安装     今天把简单的OPENVZ和HYPERVM的安装过程写一个,留下做个记号!系统:CentOS 5.1 for vmware6.0系统安装就不说了,选最简单的安装就行,还有把防火墙,SELinux关闭就了![root@localhost ~]# uname -r2.6.18-53.el5[root@localhost ~]# cat /boot/grub/menu.lst # grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE:  You have a /boot partition.  This means that#          all kernel and initrd paths are relative to /boot/, eg.#          root (hd0,0)#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00#          initrd /initrd-version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (2.6.18-53.el5)&nb...
XenServer使用ISO安装VM    首先,登入console,执行以下指令,建立iso档型式的储存库(SR - Storage Repositories)    mkdir /boot-iso    xe sr-create name-label=boot-iso type=iso device-config:location=/boot-iso device-config:legacy_mode=true content-type=iso    上传那些iso档至主机的/boot-iso即可。    新增成功,在XenCenter会出现一个项目 
Nagios 监控系统架设全攻略Nagios 结构说明Nagios 结构上来说, 可分为核心和插件两个部分。Nagios 的核心部分只提供了很少的监控功能,因此要搭建一个完善的 IT 监控管理系统,用户还需要在 Nagios 服务器安装相应的插件,插件可以从 Nagios 官方网站下载 http://www.nagios.org/,也可以根据实际要求自己编写所需的插件。回页首Nagios 可实现的功能特性监控网络服务(SMTP、POP3、HTTP、FTP、PING 等);监控本机及远程主机资源(CPU 负荷、磁盘利用率、进程 等);允许用户编写自己的插件来监控特定的服务,方便地扩展自己服务的检测方法,支持多种开发语言(Shell、Perl、Python、PHP 等)具备定义网络分层结构的能力,用"parent"主机定义来表达网络主机间的关系,这种关系可被用来发现和明晰主机宕机或不可达状态; 当服务或主机问题产生与解决时将告警发送给联系人(通过 EMail、短信、用户定义方式);可以支持并实现对主机的冗余监控; 可用 WEB 界面用于查看当前的网络状态、通知和故障历史、日志文件等;回页首Nagios 监控实现原理Nagios 软件需安装在一台独立的服务器上运行,这台服务器称为监控中心,监控中心服务器可以采用 Linux 或 Unix 操作系统;...
ڵȨ鿴־
 XenServer服务器,时间是没有调整好的,我们需要自己设置下,设置为亚洲,上海时间第一种办法,命令: [root@cl-535 ~]# dateWed Jun 27 23:38:56 EDT 2012[root@cl-535 ~]# ls -l /etc/localtimelrwxrwxrwx 1 root root 36 Mar  9  2011 /etc/localtime -> /usr/share/zoneinfo/Ame[root@cl-535 ~]# mv /etc/localtime /etc/localtime.bak[root@cl-535 ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime[root@cl-535 ~]# ls -l /etc/localtimelrwxrwxrwx 1 root root 33 Jun 28 12:01 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai[root@cl-535 ~]# dateThu Jun 28 12:02:02 CST 2012复制代码接着设置时间同步服务器: vi /etc/ntp.conf复制代码找到以下的参数,并删除server 0.xenserver.pool.ntp.orgserver 1.xenserver.pool.ntp.orgserver 2.xenserver.pool.ntp.orgserver 3.xenserver.pool.ntp.org在最下面添加一个时间服务器: pool.ntp.org复制代码第二种办法,进入XenServer控制台修改: xsconsole复制代码需要修改的有2处:1,Network and Management Interface -- Network Time (NTP) -- Remove All NTP Server...
XenServer更新补丁后因内核改变,驱动失效的解决方案 现象缘由:以Intel主板的网卡IGB为例,由于服务器的硬件较新,XenServer 5.6 SP2没有内置驱动,需要加载额外的驱动才能安装,系统安装完成后,通过XenCenter更新服务器补丁,重启服务器后无法连接,马上使用IPMI登陆服务器,发现新的补丁升级了内核,如图所示:打补丁前,内核是:xs5.6.100.323打补丁后,内核是:xs5.6.100.327分析原因:XenServer系统的内核发生了改变,旧的驱动无法兼容。解决方法,更新驱动:将xs5.6.100.327相兼容的网卡驱动ISO通过IPMI挂载为虚拟光驱,然后mount挂载到服务器,安装xs5.6.100.327更新驱动即可。步骤一:登录IPMI并且挂载xs5.6.100.327驱动ISO镜像。选择xs5.6.100.327.iso镜像点击"Plug in",挂载到光驱即可。步骤二:运用mount命令挂载ISO cd /mntmkdir xenserver-toolsmount /dev/cdrom /mnt/xenserver-tools/复制代码安装驱动 cd xenserver-tools./install.sh复制代码更新完xs5.6.100.327驱动之后,重启下服务器即可。
 在XenServer的centos中,无法修改时间的解决方案!  echo 1 > /proc/sys/xen/independent_wallclockdate -s "2012-07-21 10:35:00" 修改时区rm -rf /etc/localtimeln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime修改/etc/sysconfig/clock文件的内容为: ZONE="Asia/Shanghai" UTC=false ARC=false
 How to Disable Receive-Side Copy (RSC) on XenServer 6.x Document ID: CTX133199   /   Created On: 2012-6-29   /   Updated On: 2013-7-23 Average Rating: (2 ratings) <!-- -->View products this document applies to SummaryThis article describes how to disable the Receive-Side Copy on XenServer 6.xRequirementsAccess to Windows Virtual Machine and Registry EditorAccess to XenServer command line interface to monitor logsBackgroundIn XenServer 6.x, a new feature called Receive-Side Copy (RSC) is enabled by default in Windows virtual machines with XenTools installed.RSC moves the processing required for network traffic from Domain 0 (netback process) into the virtual machine (netfront process) thereby reducing the load on the control domain when you run large numbers of virtual machines.In some scenarios, you might have to disable this feature to improve the virtual machine performance.Known IssueWith RSC enabled, a virtual machine virtu...
    总共269页,当前第192页 | 页数:
  1. 182
  2. 183
  3. 184
  4. 185
  5. 186
  6. 187
  7. 188
  8. 189
  9. 190
  10. 191
  11. 192
  12. 193
  13. 194
  14. 195
  15. 196
  16. 197
  17. 198
  18. 199
  19. 200
  20. 201
  21. 202