You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

  1. Download the desired Tomcat version from its official site. You can click here to get Tomcat 8. 

    ดาวน์โหลดเวอร์ชั่น Tomcat ที่ต้องการจากเว็บไซต์ทางการ คุณสามารถคลิกที่นี่เพื่อรับ Tomcat 8

    32 or 64 bits?

    Make sure that you match Tomcat with the version of Java that you are using.

    ตรวจสอบให้แน่ใจว่าคุณจับคู่ Tomcat กับเวอร์ชันของ Java ที่คุณใช้อยู่

  2. Make sure that you pick the bundle meant for Windows as highlighted below.

    ตรวจสอบให้แน่ใจว่าคุณเลือกบันเดิลที่มีความหมายสำหรับ Windows ดังที่ได้เน้นด้านล่าง




  3. Extract the content and put it into the Joget's installation directory.
    In this article, our Joget installation directory is C:\Joget-DX7-Enterprise\
    At the time of writing, "apache-tomcat-8.5.54" is the version downloaded.

    แตกเนื้อหาและใส่ลงในไดเร็กทอรีการติดตั้งของ Joget
    ในบทความนี้ไดเรกทอรีการติดตั้ง Joget ของเราคือ C:\ Joget-DX7-Enterprise \
    ในขณะที่เขียน "apache-tomcat-8.5.54" เป็นรุ่นที่ดาวน์โหลดมา




  4. Copy the jw.war from existing tomcat's webapps folder into the new one (i.e. from \apache-tomcat-8.5.41\webapp\ to \apache-tomcat-8.5.54\webapp\)

    คัดลอก jw.war จากโฟลเดอร์ webapps ของ tomcat ที่มีอยู่ไปยังโฟลเดอร์ใหม่ (เช่นจาก \ apache-tomcat-8.5.41 \ webapp \ ไปยัง \ apache-tomcat-8.5.54 \ webapp \)

  5. Optional step: If you ever plan to start up Joget manually next time by running the usual batch file or through Windows Start Menu, you can modify joget.start to point to the new tomcat folder.

    ขั้นตอนเพิ่มเติม: หากคุณวางแผนที่จะเริ่มต้น Joget ด้วยตนเองในครั้งถัดไปโดยการเรียกใช้ไฟล์แบตช์ปกติหรือผ่านทางเมนูเริ่มของ Windows คุณสามารถปรับเปลี่ยน joget.start ให้ชี้ไปที่โฟลเดอร์ Tomcat ใหม่

    Existing code
    set CATALINA_HOME=.\apache-tomcat-8.5.41
    New code
    set CATALINA_HOME=.\apache-tomcat-8.5.54
  6. Open up \apache-tomcat-8.5.54\bin in your command prompt.

    เปิด \ apache-tomcat-8.5.54 \ bin ในพรอมต์คำสั่งของคุณ

  7. Run service.bat install service_name Tomcat8JogetDX.

    เรียกใช้ service.bat service_name Tomcat8JogetDXการติดตั้ง

    Command Prompt
    C:\Joget-DX7-Enterprise\apache-tomcat-8.5.54\bin>service.bat install service_name Tomcat8JogetDX
    Installing the service 'Tomcat8JogetDX' ...
    Using CATALINA_HOME:    "C:\Joget-DX7-Enterprise\apache-tomcat-8.5.54"
    Using CATALINA_BASE:    "C:\Joget-DX7-Enterprise\apache-tomcat-8.5.54"
    Using JAVA_HOME:        "C:\Joget-DX7-Enterprise\jre11.0.2"
    Using JRE_HOME:         "C:\Joget-DX7-Enterprise\jre11.0.2"
    Using JVM:              "C:\Joget-DX7-Enterprise\jre11.0.2\bin\server\jvm.dll"
    The service 'Tomcat8JogetDX' has been installed.
  8. To verify, you may check in Computer Management -> Services.

    ในการตรวจสอบคุณสามารถเช็คอินการจัดการคอมพิวเตอร์ -> บริการ



  9. Get back to the \apache-tomcat-8.5.54\bin folder. From the command prompt, runs the command tomcat8w.exe //ES/Tomcat8JogetDX

    กลับไปที่โฟลเดอร์ \ apache-tomcat-8.5.54 \ bin เปิดขึ้น tomcat8w.exe //ES/Tomcat8JogetDX


     

  10. Go to the Logging tab. Verify that the Log path is pointing to the correct location, by default, it should point it back to the logs folder of the current Tomcat already.
    Select the level of logging you wish for in the level drop-down list.

    ไปที่แท็บการบันทึก ตรวจสอบว่าเส้นทาง Log ชี้ไปยังตำแหน่งที่ถูกต้องโดยค่าเริ่มต้นมันควรชี้ไปที่โฟลเดอร์บันทึกของ Tomcat ปัจจุบันแล้ว
    เลือกระดับการบันทึกที่คุณต้องการในรายการแบบเลื่อนลงระดับ


     

  11. Next, go to the Java tab,change the JavaVirtual Machine file path to the file path shown below and append the following lines in the Java Options field. This is to define the wflow home folder from where Joget will run. At the same time, configure the maximum memory pool accordingly (i.e. 1024).

    จากนั้นไปที่แท็บ Java ต่อท้ายบรรทัดต่อไปนี้ในฟิลด์ Java Options นี่คือการกำหนดโฮมโฟลเดอร์ wflow จากตำแหน่งที่ Joget จะทำงาน

    Append these lines
    -Dwflow.home=C:\Joget-DX7-Enterprise\wflow
    -javaagent:C:\Joget-DX7-Enterprise\wflow\aspectjweaver-1.8.5.jar
    -javaagent:C:\Joget-DX7-Enterprise\wflow\glowroot\glowroot.jar



  12. Go to startup tab, set the working path to your Joget's installation folder. Repeat it for shutdown tab too.

    จากนั้นไปที่แท็บ Java ต่อท้ายบรรทัดต่อไปนี้ในฟิลด์ Java Options นี่คือการกำหนดโฮมโฟลเดอร์ wflow จากตำแหน่งที่ Joget จะทำงาน


     

  13. You can now start up Joget as a service.

    ตอนนี้คุณสามารถเริ่มใช้ Joget เป็นบริการได้แล้ว

After you have successfully added Tomcat as a service, you may also want to add MySQL as a service and make Tomcat dependent on MySQL as well.

หลังจากคุณเพิ่ม Tomcat เป็นบริการเรียบร้อยแล้วคุณอาจต้องการเพิ่ม MySQL เป็นบริการและทำให้ Tomcat ขึ้นอยู่กับ MySQL เช่นกัน

  1. Installing MySQL as a Windows Service
  2. Adding MySQL service as a Dependency to Tomcat service

Reference: Apache Tomcat 8 - Windows service HOW-TO


การอ้างอิง: Apache Tomcat 8 - Windows service HOW-TO



  • No labels