One Authen
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # :memo: Inetrav2 Manual (คู่มือเว็บไซต์ inetrav2) #### Access (การเข้าถึง) > site https://ca.inet.co.th/inetra > uat-site https://uat-ca.inet.co.th/inetra > ## :memo: Installation (For Develop) 1) clone project https://gitlab.com/oneauthen/inetrav2 2) install node js 3) install yarn 4) เข้าไปที่ Folder ของ โปรเจคแล้วทำการใช้คำสั่ง ``` yarn ``` เพื่อ install dependencies ต่างๆ ที่ต้องใช้ 5) หลังจากติดตั้ง dependencies จากข้อ 4. แล้ว ให้ทำการ ``` yarn serve ``` เพื่อรัน localhost 6) Enjoy Dev :+1: ## :memo: Deploy Manual (UAT) 1) เข้าไปที่ Folder ของ โปรเจคแล้วใช้คำสั่ง `yarn build` 2) หลังจากที่ทำการ **build** สำเร็จจะได้ โฟลเดอร์ที่ชื่อ **"dist"** (หรืออาจ build บน git ก็ได้****) 3) นำโฟลเดอร์ dist ขึ้นไป server uat โดยทำการ ssh ไปที่ server 4) ทำการ ติดตั้ง MobaXterm แล้วทำการ **ใส่ข้อมูล credencial เข้าเครื่อง**ดังต่อไปนี้ (*สำหรับขั้นตอนนี้ถ้าเคยทำแล้วสามารถไป [login] ตามขั้นตอนที่ 6 ได้เลย*) ``` โดยมี credencial ดังนี้ ip : 203.154.59.130 user: centos port: 8722 ใช้ keyoneauthen.pem ในการ login ``` ![](https://i.imgur.com/LImKTrf.png) ### :key: keyoneauthen.pem ในการ login :key: ![](https://i.imgur.com/RUxl7td.png) - ทำการ copy text ด้านล่างนี้ไปใส่ notepad แล้วทำการ save ไฟล์ หลังจากนั่น เปลี่ยนนามสกุลไฟล์เป็น .pem เป็นชื่อดังรูปด้านบน ``` -----BEGIN RSA PRIVATE KEY----- MIIEqgIBAAKCAQEA1vVvfSGgnlqMTIdVg5RzQkTnIV8j3E/x9rweNwmVavvA0C79 1ij2TdHvYlLSov7OyBeAg6ki+knhf6yuur88CiCTupxJ++M0P9yocTPy3xbdef6p Z3TFLEHJkGjmw28kVPDoR3iXwX1UZVGbWsO494EEim1tChv6MPZJymiR/iuFg9mO Wwl5Yoyl73jvacpKSCaikIXCjkAEUyb/t5BD1y1l2tmhzRxVNk9TcFR70aXK4iuv 5KqyqYv9lZmrijM3GxZ9WqaVfK/vIrd6MhnGVLzd2LJibbmsxoDZixygD/YNc9j4 F9gDAeSFNQY4JNoRrL6ViJhll3lbV6YFqJKRfQIDAQABAoIBAEwMlR7+EKc1fcFt d9GPaZ+eZO8ni7ZcCkyyjTYHi/dHjhWZKnDkGQ+7ICf3CVJlN58OwYbTBe7qyH61 BzRGh+VFVT6GIJ6e6VNWq7kxGdHXcw/ACwrxAvj/ZWJT2qB157KtcGAox/fKcVtP HdlkuUHHQWYABL243DEKUVzs1gnHkdZRVWVFFWGY8GE6iuPPdyrwl+rM6PkJvRfP eD8bNiULFCsKYmuovaWuKwhNmNDivhtDUtBxaEZUJOuuG1BV0r3NHm0/vLY+qm5I TB1zrEl75ihaujPxPYEfEzo/x+bs6Kmqpm4YaqyZaXtuYl3m8yncvIN2CFrG4N7M A5TJiEECggCBAOCfgGCV5i4AdHNu4JCiypuKYET1kw1IVM5SOWeLPcC1z8t5J/HV F1wc4JIen/S9KyaFKCSzSfywrcfDaPZcj7YymtKMDa6dtFb1oC/nnhUl1YqHZmlR LlTZ4gfQSsfBfQLKy+WUBt7bF8wB2smvFtMvqDhLUPBoSE8azy0sz4v1AoIAgQD0 /FbAvj4u+lOIWz5tgJizujjlo40Q2VUSbxzORLUHk70Hgs+5qZemuk3d43D81usj 7sNk0QIaNOIPk5NcRSTOOO4u9ykfKLNKIHlUyGYTkbKedfc3ESfvYfs606xY+OUd 7o02/JNeWWlO3UVhYlZ6H7l7YSglqDYFLMaRGslCaQKCAIEAp8FXjkrFIpwCXGd1 XW/G4w0gQsAo9+WKOKCd8J/EGdVvACZW17xuesOyUE6A5bYVsOoHhglEe2y0DJn7 HOsaBVeb2xzv5vYuxjchUEWqAV9FMPVYXdVcRdCHh5BfGPp/U4ODbcz0qKF2D01f Sfryj/xqpMhTBYjMYA/EpJdv1bUCggCBAMAK5z6kYz6UQNMNI7zXJ90Lx/pL4RMq KwQOUfhn57kO2QmAQ7H4/cZXGR8tYa7yEtXSHx1yskE031jyiHu2QAngmuX6HiQs 1Y7wMeyCQ3JnriuFsctbCYEfv773m40LXx+9lrlZ+XPmhySpU+/pFH0bTV0oZj5O xDn+RZIN+2KxAoIAgQCOazqjn5Mh3Vk/1VvDRIiEozWG5FSp4zm7RNev5bS3YZ4L EwBuV0o1FOlhMSa2XcOKpwoaL+FkMx9Mo1WeholYhrP1se7VuaFBiGjH7XpcKPYK 5M8NnDlH2UaIE7Pf+spNyfH+o8eFDj6ThsbJ4FHEXjPEErvsq3ARr923PW9ANA== -----END RSA PRIVATE KEY----- ``` 6) หลังจากเข้ามาได้แล้ว ให้ทำการ login ดังรูป ![](https://i.imgur.com/tOQCjLH.png) เมื่อ login สำเร็จ ![](https://i.imgur.com/bnCGWto.png) 7) เข้าไปที่ path ```cd /home/centos/inetra2.0``` ![](https://i.imgur.com/FytHLv3.png) 8) upload folder "dist" (ลากมาวางเลย อาจจะตั้งชื่อเป็น dist_vx.x.x เพื่อบอกเวอร์ชั่น คือ x ตัวแรกเวอร์ชัน, x ตัวสอง feature และ x ตัวสุดท้าย bug) 9) cd เข้าไปที่ folder "dist" (cd inetra2.0 หรือ coppy path ไปวางได้เลย ) 10) แล้วรันคำสั่ง ``` ../createWar.sh . ``` ![](https://i.imgur.com/p2zOaEh.png) 11) พิมพ์คำสั่ง ls จากนั้นใน Folder จะมีไฟล์ชื่อว่า inetra.war 12) ![](https://i.imgur.com/exhUnAM.png) 13) ให้ทำการ copy file (inetra.war) ไปที่ path /export/newca/deployment/REP โดยใช้คำสั่ง ``` sudo cp inetra.war /export/newca/deployment/REP/ ``` แล้วลองเช็คดูว่ามีไฟล์ inetra.war เข้ามาใน path นี้แล้วยัง โดย cd แล้ว ll ออกมาดู `cd /export/newca/deployment/REP/ ` ** **สำหรับ production เปลี่ยนสิทธิ์ไฟล์ให้เป็น jboss** ``` chown jboss:jboss inetra.war ``` 14) จากนั้นเข้าเครื่อง CA (วิธีการ ssh เหมือนกับข้อ 4. *ถ้าเคยทำแล้วสามารถไป login ได้เลย* ) ``` โดยมี credencial ดังนี้ ip : 203.154.58.4 user: centos ใช้ keyoneauthen.pem ในการ login ``` ** **สำหรับ production** ไปเครื่อง CA_DR 15) รันคำสั่งตามลำดับ พอ run คำสั่ง undeploy แล้วลองไปเช็คหน้าเว็บดูเข้าได้อยู่ไหม ``` sudo su export JAVA_HOME=/export/jdk/ cd /export/wildfly/bin ./jboss-cli.sh -c undeploy inetra.war --all-relevant-server-groups /deployment="inetra.war":add(runtime-name="inetra.war", content=[{"path"="/export/newca/deployment/REP/inetra.war","archive"=>false}]) ``` ![](https://i.imgur.com/vfZUHX1.png) ``` deploy --name=inetra.war --server-groups=REP-server-group ``` 16) ตรวจสอบหน้าเว็บ ว่าใช้งานได้ https://uat-ca.inet.co.th/inetra - And MORE ➜ [HackMD Tutorials](https://hackmd.io/c/tutorials)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully