기본 콘텐츠로 건너뛰기

7월, 2014의 게시물 표시

ubuntu resize hdd in vmware with cfdisk

- Resize vmware hdd size. - Create new partition using cfdisk: with fdisk error occur "no free sector available" $ sudo cfdisk /dev/sda new -> logical -> Size( in MB) : 89121.62 Type -> 8E Write -> yes Quit - Reboot server: $ sudo reboot - Assuming you created partition /dev/sda6, let's now create the physical volume in that partition: $ sudo pvcreate /dev/sda6 - Now let's extend the server's Volume Group to that physical volume. $sudo vgdisplay This will give you the info on your current Volume Group. Note down the entry next to "VG Name". That's your Volume Group name. $ sudo vgextend EnterVolumeGroupNameHere /dev/sda6  - Since we're (essentially) extending the main logical volume, let's get the name of that: $ lvdisplay and note down the entry next to "LV Name". This is your logical volume's name (e.g. /dev/srv/root), which you'll now extend to the newly added partition/physical vol

tomcat hello jar sample in eclipse.

Eclipse ant setting jdk eclipse > Preference > Ant > Runtime > Global Entries add External JARs -> jdk 6.0_45 tools.jar add Project Setting  web.xml <web-app version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xsi:schemalocation="http:/java.sun.com/dtd/web-app_2_3.dtd">   <servlet>     <servlet-name>hello</servlet-name>     <servlet-class>test.HelloServlet</servlet-class>   </servlet>   <servlet-mapping>     <servlet-name>hello</servlet-name>     <url-pattern>/hello</url-pattern>   </servlet-mapping> </web-app> build.xml <?xml version="1.0" encoding="UTF-8"?> <project name="myWeb" default="build-jar" basedir="."> <property name="tomcat-home" value="E:/dev/was/apache-tomcat-7.0.54" /