Skip to content

Commit

Permalink
Merge pull request #180 from nehaljwani/patch-1
Browse files Browse the repository at this point in the history
Dedicated Server Setup: Fix some steps
  • Loading branch information
gangeli committed May 4, 2016
2 parents f8e613e + 6f70fd0 commit 75777d3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions _pages/corenlp-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,20 +223,22 @@ This section describes how to set up a dedicated CoreNLP server on a fresh Linux

3. Create a user `nlp` with permissions to read the directory `/opt/corenlp`. Allow the user to bind to port 80:

```bash
sudo mkdir -p /etc/authbind/byport/
sudo touch /etc/authbind/byport/80
sudo chown nlp:nlp /etc/authbind/byport/80
sudo chmod 600 /etc/authbind/byport/80
```
```bash
sudo mkdir -p /etc/authbind/byport/
sudo touch /etc/authbind/byport/80
sudo chown nlp:nlp /etc/authbind/byport/80
sudo chmod 600 /etc/authbind/byport/80
```

4. Copy the startup script from the source jar at path `edu/stanford/nlp/pipeline/demo/corenlp` to `/etc/init.d/corenlp`. An easy way to get this is:

```bash
sudo wget https://raw.githubusercontent.com/stanfordnlp/CoreNLP/master/src/edu/stanford/nlp/pipeline/demo/corenlp -O /etc/init.d/corenlp
```

5. Link the script to `/etc/rc.d/`: ```ln -s /etc/init.d/corenlp /etc/rc.d/rc2.d/S75corenlp```
5. Give executable permissions to startup script: ```sudo chmod a+x /etc/init.d/corenlp```

6. Link the script to `/etc/rc.d/`: ```ln -s /etc/init.d/corenlp /etc/rc.d/rc2.d/S75corenlp```

The CoreNLP server will now start on startup, running on port 80 under the user `nlp`. To manually start/stop/restart the server, you can use:

Expand Down

0 comments on commit 75777d3

Please sign in to comment.