`
文章列表
最近使用virtualbox搭建juju的lxc测试环境,但是juju deploy mysql总是失败。登录到环境上查看,原来是分配innodb的时候硬盘没有空间了!由于virtualbox我使用默认的8G硬盘空间,所以已经不够用了。   用来扩容的方法如下:   VirtualBox 4.0 版增加了一个非常酷的新功能:您可以在几秒钟内完成对虚拟硬盘容量的修改。   在VirtualBox 4.0中修改虚拟盘镜像文件(.VDI),首先找到您要修改的 .vdi 文件所在的文件夹。通常应该是 ~/.VirtualBox/HardDisks 或者是 ~/Virtu ...
juju是一个开发中的DevOps工具,目前主要有3种方法: 1. 在AWS环境中部署; 2. 在本机使用lxc container搭建测试环境; 3. 在ubuntu 12中使用MAAS。   对于单机,最方便的是本机测试环境。方法如下: http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage  
为了搭建一个测试的ubuntu cloud环境,我使用virtualbox进行安装。在完成cloud server安装后,通过web查看maas的管理界面,看到profile缺失,需要使用sudo maas-import-isos来进行安装。   运行多次这个命令,都失败了。错误如下: "httpd does not appear to be running and proxying clobber"   查阅了半天资料,在论坛上找到问题的原因了: Could you please make sure that MAAS/cobbler have the corr ...
Ubuntu 12.04发布了,在虚拟机中安装,启动提示错误。 This kernel requires the following features not present on the CPU: pae Unable to boot - please use a kernel appropriate for your CPU. 经过搜索发现pae是物理地址扩展,可能因为Ubuntu发现似乎很多人的PC都具备了4GB以上的内存吧? 所以需要在虚拟机中启用这个选项。方法是选中虚拟机,Machine--Setting--System--Processor--Extended Featur ...
前提:文件中每一行为一个单词 sort filename | uniq -c| sort -nr   uniq: -c 输出重复次数 sort: -n 按照数值比较排序 -r 逆序输出结果
logrotate是linux自带的定期执行工具,由cron启动和配置。使用这个工具可以完成日志的管理。例如,通过如下的配置,可以管理tomcat的日志,避免目录过大: /etc/logrotate.d/catalina file: /var/tom*/logs/catalina.out { daily dateext rotate 14 compress copytruncate missingok }
I need read requested server name in jsp (tomcat container), because tomcat is behind apache, and apache use proxypass, so the tomcat can only read request.getServerName() got 'localhost'.   We can pass correct hostname by setting apache configuration: proxyPreserveHost on.   more infomation see: ...
We can use Nexus to build maven repository:   http://kidsmopi.iteye.com/blog/232554   Here is a quick example to upload with curl curl --write-out "\n\nStatus Code: %{http_code}\n\n"' " http://localhost:8081/nexus/content/repositories/repoId//g/a/v/a-v.jar " -F ...
    It is possible to do this in Tomcat 6.0 with: disableURLRewriting http://tomcat.apache.org/tomcat-6.0-doc/config/context.html e.g. 写道 < Context docBase="PATH_TO_WEBAPP" path="/CONTEXT" disableURLRewriting="true"> </Context>     <session ...
sudo will only run a program as a different user if one of these 3 conditions has been met (as far as passwords are concerned): the NOPASSWD option is specified the user entered the correct target password the user entered the correct source password Since options 2 and 3 require a TTY (sudo ...
在使用hudson的过程中,我们需要发送邮件的功能。但是公司的邮箱是需要ssl加密的,这样仅仅配置邮件地址,点击发送测试邮件的时候,就会报java exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to reque ...
今天发生了一个服务器down的问题:ping应用服务器有正常回应,ping VIP失败,我们就想当然的认为是VIP的问题,把问题抛给network engineering team。   很快,他们把皮球踢出来了:是由于应用服务器的health check没有启动,造成VIP down。我们检查了一下应用服务器,确实是tomcat启动了,但是apache没有启动,造成health check没有成功。   通过linux uptime命令,可以看出服务器重启过。tomcat随机启动了,但是apache没有。问题原来在这里!

为什么要迁移到git

    博客分类:
  • git
最近谈到版本控制,所有人都在谈Git。当然随意的谈论并不能让你下定决心迁移到Git。这里列出了八条有分量的理由,让你加入Git阵营。 1. 快速 如果你每移动一下鼠标都要等待五秒,是不是很受不了?版本控制也是一样 ...

迁移cvs版本库到git

    博客分类:
  • git
使用git cvsimport工具进行导入。   1) Make sure you have git-core package installed on your local machine and it includes the git-cvsimport command. To check: [$local]: git help -a | grep cvsimport   cvsimport           merge-resolve       show-ref   If not present, you can use following command in U ...
When you want to establish an SSL connection like this; URL url = new URL("https://localhost:9443/soap_rpc");   You may get an exception like this; javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found ...
Global site tag (gtag.js) - Google Analytics