blogffiti | 塗鴉板
This is my play ground to experience the fun of web design | 這是用來練習網頁版面設計的塗鴉板。
Tuesday, July 17, 2018
Unix環境下增加預設路徑
方法一:建立 soft link 至 usr/local/bin
ln - s (來源檔案路徑與檔名) /usr/local/bin/(檔名)
(不要打括號)
ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
方法二:編輯 etc/bashrc 檔,透過 alias 加入路徑
範例 -
#mysql
alias mysql='usr/local/mysql/bin/mysql'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment