關於不同使用者 執行service問題 - Linux

By Olga
at 2017-08-07T00:21
at 2017-08-07T00:21
Table of Contents
請問一下各位 我使用root 權限 執行了
$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar
The 'pear' command is now at your service at /usr/local/bin/pear
$ /usr/local/bin/pear install PHP_CodeSniffer
這時當我使用root執行 phpcs —help 可以正常work
但在jenkins 服務下使用shell 卻必須輸入完整路徑才可以執行
/usr/local/bin/phpcs phpcs —help
否則會出現command not found
不太了解, 不知有人知道為什麼嗎?
--
Tags:
Linux
All Comments

By Oscar
at 2017-08-07T17:59
at 2017-08-07T17:59

By Jessica
at 2017-08-11T16:01
at 2017-08-11T16:01
Related Posts
kubuntu更新後無法啟用圖形介面

By Callum
at 2017-08-06T23:56
at 2017-08-06T23:56
Ubuntu 12.04 安裝完後不能使用./

By Dinah
at 2017-08-04T23:07
at 2017-08-04T23:07
使用兩台ds116 做一支cam監控&異地備分

By Irma
at 2017-08-04T10:11
at 2017-08-04T10:11
RHEL 7.4 將不再更新 Btrfs 文件系統

By Carol
at 2017-08-04T01:18
at 2017-08-04T01:18
遠端操作Ubuntu如何設定畫面待解鎖?

By Frederica
at 2017-08-03T23:54
at 2017-08-03T23:54