Add PHP and Jekyll Webserver in Readme-EN

pull/275/head
Dwaraka Nath 2015-08-15 09:28:47 +05:30
parent ea7521212b
commit 5f8a35f225
1 changed files with 5 additions and 1 deletions

View File

@ -161,6 +161,10 @@ Notes:
- For a simple web server for all files in the current directory (and subdirs), available to anyone on your network, use:
`python -m SimpleHTTPServer 7777` (for port 7777 and Python 2) and `python -m http.server 7777` (for port 7777 and Python 3).
- Likewise, for a simple php web server to serve all the files in the current directory, use `php -S localhost:7777`. To expose it to people in your network, `php -S 0.0.0.0:7777`
- To expose the `jekyll` content in your folder, use `jekyll serve` and to expose the same to all users in the network, `jekyll serve --host 0.0.0.0`
- For running a command with privileges, use `sudo` (for root) or `sudo -u` (for another user). Use `su` or `sudo bash` to actually run a shell as that user. Use `su -` to simulate a fresh login as root or another user.