This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
虚拟机安装的时候只分配了8G的硬盘,现在又分配了250G的磁盘空间,需要挂载上去,下面是挂载步骤 | |
# fdisk -l | |
#查看分区情况 | |
Disk /dev/sda: 8589 MB, 8589934592 bytes | |
255 heads, 63 sectors/track, 1044 cylinders | |
Units = cylinders of 16065 * 512 = 8225280 bytes | |
Device Boot Start End Blocks Id System | |
/dev/sda1 * 1 13 104391 83 Linux | |
/dev/sda2 14 1044 8281507+ 8e Linux LVM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jvm 1 | 2012-11-13 11:41:36 WARN [-142310161-3229] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "131_release" (id=131_release) threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. Auto-blocking this repository to prevent further connection-leaks and known-to-fail outbound connections until administrator fixes the problems, or Nexus detects remote repository as healthy. - Cause(s): Transport error while executing GET method [repositoryId="131_release", requestPath="/org/springframework/spring-parent/maven-metadata.xml", remoteUrl="http://192.168.172.131:8081/nexus/content/groups/public/org/springframework/spring-parent/maven-metadata.xml"] > Read timed out | |
jvm 1 | 2012-11-13 11:41:36 INFO [Thread-23 ] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry.131_release - Next attempt to auto-unblock the "131_release" (id=131_release) repository by ch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586.bin | |
2 chmod +x jdk-6u25-linux-i586.bin | |
3 ./jdk-6u25-linux-i586.bin | |
4 mv jdk1.6.0_25/ /usr/local/jdk1.6.0_25 | |
5 vi /etc/profile | |
export JAVA_HOME=/usr/local/jdk1.6.0_25 | |
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH | |
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH | |
6 source /etc/profile | |
7 java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Usage: | |
fab deploy:appname | |
""" | |
from fabric.api import env, run, cd, local, put | |
env.hosts = ['myserver.com'] | |
env.user = 'eric' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
######################################################################### | |
# # | |
# MySQL performance tuning primer script # | |
# Writen by: Matthew Montgomery <[email protected]> # | |
# Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) # | |
# Version: 1.5-r5 Released: 2009-11-22 # | |
# Licenced under GPLv2 # | |
# # |