WebFaction
Community site: login faq

I'd think this would be simple enough but Google doesn't seem to have the answer.

I've set up a custom Nginx server from source. I would like to set up the nginx PATH variable to point to me Nginx install instead of the server's front-end instance so I can just type nginx -s reload without having to type the full path to the nginx executable in sbin.

I've tried putting a symlink to ~/nginx/sbin/nginx in ~/bin but that's not working. I've tried an alias in .bash_profile but that's not working either.

How can I create my own PATH variables that override the global ones?

asked 28 Jun '13, 22:41

HittingSmoke
4822230
accept rate: 8%


you would use the 'export' command like this,

export PATH=/a-path/:/another-path

You can place this within your .bash_profile file and it will execute on SSH connection automatically.

permanent link

answered 29 Jun '13, 17:03

johns
5.3k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×23
×19
×9
×2

question asked: 28 Jun '13, 22:41

question was seen: 2,537 times

last updated: 29 Jun '13, 17:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM