top of page

็How to set environment variable บน macOS.

  • Tinpan.S
  • Dec 17, 2018
  • 1 min read

การ set environment variable บน macOS

วิธีที่1 แก้ไขไฟล์ paths ในโฟลเดอร์ etc

  1. เข้าไปที่โฟลเดอร์ etc

  2. เปิดไฟล์ paths ด้วย text editor

  3. เพิ่ม path ที่ต้องการ

วิธีที่ 2 แก้ไขไฟล์ .bash_profile

  1. เข้าไปที่ /Users/username

  2. เปิดไฟล์ .bash_profile ด้วย text editor

  3. export PATH=$PATH:path ที่ต้องการ

*** หมายเหตุ หลังจากแก้ไขไฟล์แล้วควร restart terminal เพื่อให้แอพพลิเคชั่น update ***

แหล่งที่มา : https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.Uydjga1dXDg ,https://nextflow.in.th/2017/set-path-on-macos-osx-for-mac-developer-beginner-thai/

Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page