Changes between Version 1 and Version 2 of waue/2010/0528


Ignore:
Timestamp:
May 28, 2010, 2:01:51 PM (14 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2010/0528

    v1 v2  
    2424需要額外引入 servlet-api.jar  與 jsp-api.jar (此兩個檔可以到 tomcat_home/lib/)
    2525
    26  = 測試tomcat 的執行權限 =
     26
     27HelloWorldExample.java
    2728
    2829{{{
    29 #!jsp
     30#!java
    3031/*
    3132* Licensed to the Apache Software Foundation (ASF) under one or more
     
    108109
    109110重新啟動 tomcat 或 用 manager/的 reload examples 資料夾
     111
     112 = 測試tomcat 的執行權限 =
     113
     114範例中會執行 /home/waue/a.sh
     115
     116a.sh 的執行權限為 700 擁有者為 waue
     117
     118{{{
     119#!sh
     120#!/bin/bash
     121
     122date=`date`
     123echo "gogogo" > a.txt
     124echo "$date" >> a.txt
     125}}}
     126
     127如果 tomcat 的執行權限不是 waue ,則無法執行也無法寫入
     128
     129答案如預期,證明 tomcat 的執行權限即為 啟動tomcat 的使用者。