8.3..................................... 7 8.4 java.sh......................................... 7 8.5........................... 7 8.6 Eclipse........

Similar documents
II 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C JavaScript Web CGI HTML 1.2 Servlet Java

Web 1 p.2 1 Servlet Servlet Web Web Web Apache Web Servlet JSP Web Apache Tomcat Jetty Apache Tomcat, Jetty Java JDK, Eclipse

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

Alfresco設置手順書

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

II 2 p.2 2 GET POST form action URL Aisatsu 2.1 Servlet GET GET : Query String QueryStringTest.java 1 import java.io.ioexception; 2 import java.io.pri

Servlet/JSP ( 作成中 ) 2010 年 x 月 x 日作成 Firebird 日本ユーザー会 Naoyuki Sano 1

WAS V8.5.5 SAML認証構成ガイド - Liberty Profile編

Servlet JSP JSP Servlet/JSP における 日 本 語 の 処 理 - 1

HTML/JSP/Servlet... 7 JSP... 7 Servlet Struts Struts Struts FormBean LoginForm

Microsoft PowerPoint - Lecture_3

Microsoft Word - マニュアル4.1J

9iAS_DEV.PDF

3 Ubuntu Linux Ubuntu Linux Debian Linux DistroWatch.com 1 Debian Ubuntu Linux 1 Debian CD(4.1 ) Knoppix Debian CentOS Linux CentOS 1 Ubuntu L

スライド 1

Ubuntu Linux PC Ubuntu Linux (14.04 LTS, Trusty Tahr) 32bit CD 64bit CD 2. 32bit CPU 64bit 32bit PC CPU 32bit 64bit Windows 64bit 64bit. 32bit Core 64

PowerPoint Presentation

防災マップ作成システムの開発業務基本設計書


untitled

INR-HG5579a_Netshut_Guide_Linux-Solaris_.doc

メディプロ1 Javaサーブレット補足資料.ppt

Web Servlet/JSP JSP

Microsoft PowerPoint - Lecture_2

OpenAM 13 インストールガイド

第13回講義

Web JavaScript Java Applet Flash ActionScript CGI (C, perl, ruby ) PHP Servlet, JSP (JavaServer Pages) ASP 7-2

Oracle Application Server 10g( )インストール手順書

Xen入門 ppt

Xen入門 ppt

1 1 CentOS Java JDK(JavaSE Development Kit)......

Oracle Application Server 10g(9

スライド 1

VPS では 通 常 はインスタンスが 1 個 です 停 止 と 再 起 動 を 選 択 できます CloudStack では インスタンスの 追 加 と 破 棄 の 機 能 を 利 用 することにより お 客 様 が 契 約 されているインスタンス 数 分 の 仮 想 サーバを 自 由 に 追 加

FileMaker Server Getting Started Guide

<Documents Title Here>

データ構造とアルゴリズム論

debian_install.dvi

debian_manual.dvi

untitled

Java Day Tokyo 2017 ダウンロード資料

B2-Servlet-0112.PDF

INR-HG5290b_users_Linux-RHEL4_.doc

Java updated

<4D F736F F D FE382C56E733282F093AE8DEC82B382B982E98EE88F872E646F63>

Android Studioセットアップガイド

A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

 

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

PostgreSQLによる データベースサーバ構築技法

# mv httpd tar.gz /usr/local/src /usr/local/src # tar zxvf httpd tar.gz make #./configure # make # make install Apache # /usr/local/apac

AC3DGmst.ps

MathLibre KNOPPIX (next generation) 2012 KNOPPIX/Math MathLibre KNOPPIX , KNOPPIX 6.0, next generation. KNOPPIX/Math KDE,

Red Hat Enterprise Linux AS (v.3 for IPF) Update 3

Gartner Day

FileMaker Server 16 インストールおよび構成ガイド

3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");

Javaと マルチスレッド

PowerPoint Presentation

FileMaker Server 8 Advanced Web Publishing Installation Guide

PowerPoint プレゼンテーション

untitled

JNOD32OPE_1.book

橡環境設定.PDF

Web apache

P X-M04-00 PowerChute Network Shutdown PowerChute Network Shutdown Standard v2.2.3a / Enterprise v2.2.3v PowerChute Network Shutdown Standard

intra-mart WebPlatform/AppFramework

Java演習(4) -- 変数と型 --

RouteMagic Controller( RMC ) 3.6 RMC RouteMagic RouteMagic Controller RouteMagic Controller MP1200 / MP200 Version 3.6 RouteMagic Controller Version 3

FileMaker Server 15 入門ガイド

INR-HF51882d_users_Linux-Solaris_.doc

FileMaker Server Getting Started Guide

データ構造とアルゴリズム論

Microsoft Word - jpluginmanual.doc

RouteMagic Controller RMC-MP200 / MP Version

Eclipse 操作方法 (Servlet/JSP 入門補助テキスト)

Oracle9iAS Containers for J2EEチュートリアル

変更履歴 Version 日付 変更内容 /8/23 初版作成 /1/17 他ドキュメントのバージョンアップに伴い版数のみ更新 /6/13 他ドキュメントのバージョンアップに伴い版数のみ更新 /1/15 動作環境でインストールするソ

VMware NFSまたはVMware VMFSでのVNXeシステムの使用

intra-mart im-JavaEE Framework

ゲスト OS インストール ガイド

<Documents Title Here>

"CAS を利用した Single Sign On 環境の構築"

RT300/140/105シリーズ 取扱説明書

untitled

HP Server tc2120 Microsoft Windows 2000 Server SP3 HP P

Microsoft Word - D JP.docx

IP IP DHCP..

CMS入門

Q&A集

<Documents Title Here>

AirMac ネットワーク構成の手引き

HDL Designer Series SupportNet GUI HDL Designer Series HDL Desi


Event Name

ESMPRO/ServerAgent Extension インストレーションガイド

FileMaker Server Getting Started Guide

untitled

<Documents Title Here>

設定例集_Rev.8.03, Rev.9.00, Rev.10.01対応

Transcription:

Tomcat ContOS 6.5 3 DATAGRAM INC. 26 7 7 Linux(CentOS) Tomcat eclipse tomcat 1 Tomcat/Eclipse 2 1.1.............................................. 2 2 2 2.1...................................... 2 3 OS(Linux) 2 3.1................................. 2 3.2 OS................................... 3 3.2.1 SELinux................................... 3 3.2.2 Proxy...................................... 3 3.2.3..................................... 3 4 GUI 4 4.1.................................. 4 4.2 GUI (KDE )............................ 4 4.3................................... 4 4.4 KDE................................ 5 4.5 GUI......................................... 5 5 5 5.1 Firefox............................................. 5 6 Eclipse 5 6.1 Java/Eclipse......................................... 5 7 Tomcat 5 7.1 tomcat6............................................ 5 7.2.................................. 6 7.3 Administration..................................... 6 7.4 Tomcat.......................... 6 7.5 Tomcat...................................... 6 7.6 Tomcat.......................... 6 8 Eclipse 6 8.1 Eclipse...................................... 6 8.1.1 Eclipse........................... 6 8.1.2 Eclipse.......................... 6 8.2 Eclipse...................................... 6 8.2.1 Eclipse................................ 6 8.2.2 Eclipse............................... 7 1

8.3..................................... 7 8.4 java.sh......................................... 7 8.5........................... 7 8.6 Eclipse...................................... 7 8.7 Eclipse................................... 7 8.8 Java1.6......................................... 7 8.9 Eclipse................................... 8 8.10............................... 8 9 Hello World 8 9.1 Web.................................. 8 9.2........................................ 8 9.3 HelloWorld.java........................................ 8 9.4 web.xml............................................ 9 9.5.............................................. 9 9.6...................................... 9 9.7............................................ 10 9.8 LOCAL..................................... 10 2

1 Tomcat/Eclipse 1.1 CentOS 6.5 KDE Desktop Eclipse 3.6.1 Helios tomcat6 2 OS(Linux) yum 2.1 OS PC Windows OS CD iso CD/DVD Windows PC CD-R CD iso DVD CD URL iso http://ftp.iij.ad.jp/pub/linux/centos/6.5/isos/i386/centos-6.5-i386-netinstall.iso 64bit URL http://ftp.iij.ad.jp/pub/linux/centos/6.5/isos/x86 64/CentOS-6.5-x86 64-netinstall.iso unix vi URL OS emacs http://net-newbie.com/linux/commands/vi.html http://www.jitaku-server.net/vi.html http://www.envinfo.uee.kyoto-u.ac.jp/user/susaki/command/vi.html 3 OS(Linux) 3.1 LAN CD PC 1. Welcome to CentOS 6.5! Install or upgrade an existing system 2. Disk Found [skip] 3. Choose a Language English 4. Keyboard Type jp106 101 us 5. Installation Method URL 6. Configure TCP/IP Enable IPv4 support, Dynamic IP configuration (DHCP) IPv6 3

7. URL Setup http://ftp.iij.ad.jp/pub/linux/centos/6.5/os/i386/ http://ftp.iij.ad.jp/pub/linux/centos/6.5/os/x86 64/ http://192.168.101.36:8088 8. CentOS OK 9. System to Upgrade Reinstall System 10. Time Zone Selection System clock uses UTC, Asia Tokyo 11. Root Password ******** Weak Password Use Anyway 12. Partitioning Type Use entire drive 13. Wtiting storage configuration to disk Write changes to disk 14. Complete CD Reboot 3.2 OS 3.2.1 SELinux SELinux SELinux # vi /etc/selinux/config <<< SELINUX=disabled # shutdown -r now 3.2.2 Proxy Proxy # vi /etc/profile.d/proxy.sh <<< export http_proxy=http://192.168.101.36:8088/ export ftp_proxy=http://192.168.101.36:8088/ export HTTP_PROXY=http://192.168.101.36:8088/ export FTP_PROXY=http://192.168.101.36:8088/ # exit root 3.2.3 root 1. 4

# yum -y install make # yum -y install man-pages # yum -y install man # yum -y install mailx # yum -y install openssh-clients # yum -y install bind-utils # yum -y install nkf # yum -y install wget # yum -y install lynx # yum -y install emacs 2. DHCP IP 192.168.101.254, 192.168.101.1 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 <<< DEVICE="eth0" BOOTPROTO="static" ONBOOT="yes" TYPE="Ethernet" IPADDR="192.168.101.254" NETMASK="255.255.255.0" GATEWAY="192.168.101.1" # vi /etc/sysconfig/network <<< NETWORKING=yes HOSTNAME=local254 3. dev, lsc # groupadd lsc # useradd -g lsc -m dev # passwd dev 4. # shutdown -r now 4 GUI root 4.1 # yum -y groupinstall "Development Tools" 4.2 GUI (KDE ) # yum -y groupinstall "X Window System" "Desktop" "KDE Desktop" 4.3 # yum -y groupinstall "Japanese Support" # vi /etc/sysconfig/i18n <<< LANG="ja_JP.UTF-8" 5

4.4 KDE GUI # shutdown -r now root # startx 4.5 GUI GUI # vi /etc/inittab id:3:initdefault: id:5:initdefault: # shutdown -r now 5 root [ ][ ][Konsole] $ su - : # 5.1 Firefox # yum -y groupinstall " " 6 Eclipse 6.1 Java/Eclipse # yum -y groupinstall "Java " "Eclipse" # yum -y install eclipse-nls-ja 7 Tomcat 7.1 tomcat6 # yum -y groupinstall "Web " # yum -y install tomcat6-webapps # yum -y install tomcat6-admin-webapps # yum -y install tomcat6-docs-webapp # yum -y install tomcat6-javadoc 6

7.2 # vi /etc/sysconfig/iptables <<< -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT # service iptables restart 7.3 Administration # vi /etc/tomcat6/tomcat-users.xml <<< tomcat-users 2 <role rolename="manager"/> <user username="tomcat" password="s3cret" roles="manager"/> 7.4 Tomcat # service tomcat6 start 7.5 Tomcat WEB Tomcat http://192.168.101.254:8080/ 7.6 Tomcat # service tomcat6 stop 8 Eclipse 8.1 Eclipse 8.1.1 Eclipse http://mergedoc.sourceforge.jp/ Pleiades Ver.1.4.0 /root/wrk/pleiades_1.4.0.zip 8.1.2 Eclipse # cd /usr/lib/eclipse/ # unzip /root/wrk/pleiades_1.4.0.zip 8.2 Eclipse 8.2.1 Eclipse tomcatpluginv33 # cd /root/wrk # wget http://www.eclipsetotale.com/tomcatplugin/tomcatpluginv33.zip 7

8.2.2 Eclipse # cd /usr/lib/eclipse/plugins # unzip /root/wrk/tomcatpluginv33.zip 8.3 ( :dev) root tomcat # vi /etc/group <<< root:x:0:dev... tomcat:x:91:dev 8.4 java.sh # vi /etc/profile.d/java.sh <<< export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 export PATH=$JAVA_HOME/bin:$PATH export TOMCAT_HOME=/usr/share/tomcat6 export CATALINA_HOME=/usr/share/tomcat6 export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME:lib 8.5 # /usr/share/tomcat6/lib # ln -s tomcat6-servlet-2.5-api-6.0.24.jar servlet-api.jar # ln -s tomcat6-jsp-2.1-api-6.0.24.jar jsp-api.jar # ln -s tomcat6-el-2.1-api-6.0.24.jar el-api.jar 8.6 Eclipse KDE Eclipse [ ][ ][Eclipse] 8.7 Eclipse Eclipse Tomcat [ (W)][ (P)] 8.8 Java1.6 Java JRE JRE (J): /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre [ (F)] 8

8.9 Eclipse Tomcat Tomcat 6.x /usr/share/tomcat6 Server.xml /usr/share/tomcat6/server.xml Tomcat:JVM java-1.6.0-openjdk-1.6.0.0 8.10 [ (H)][...] http://download.eclipse.org/releases/helios Web XML JavaEE PHP Dali 9 Hello World 9.1 Web [ (F)][ (N)][ (R)] Web: Web [ (N)] (P): test001 [ (F)] 9.2 test001 [ (W)][ ] (M): jp.lsc [ (F)] jp.lsc [ (N)][ (O)] [Web][ ] [ (N)] (M): HelloWorld [ (F)] 9.3 HelloWorld.java HelloWorld.java package jp.lsc import java.io.ioexception; import java.io.printwriter; import javax.servlet.servletexception; import javax.servlet.annotation.webservlet; 9

import javax.servlet.http.httpservlet; import javax.servlet.http.httpservletrequest; import javax.servlet.http.httpservletresponse; /** * Servlet implementation class HelloWorld */ @WebServlet("/HelloWorld") public class HelloWorld extends HttpServlet { private static final long serialversionuid = 1L; /** * @see HttpServlet#HttpServlet() */ public HelloWorld() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doget(httpservletrequest request, HttpServletResponse response) throws ServletException, IO // TODO Auto-generated method stub } response.setcontenttype("text/html; charset=windows-31j"); PrintWriter out = response.getwriter(); out.println("<html>"); out.println("<head>"); out.println("<title>helloworld</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>helloworld</h1>"); out.println("</body>"); out.println("</html>"); out.close(); /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, I // TODO Auto-generated method stub } } 9.4 web.xml web.xml Eclipse 9.5 CTRL+S [ (F)][ (E)] 9.6 HelloWorld.java [ (R)][ ] 10

Apache Tomcat v6.0 [ (F)] LOCAL 9.7 http://192.168.101.254:8080/test001/helloworld 9.8 LOCAL [ (T)] 11