Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated Server Setup: Fix some steps #180

Merged
merged 2 commits into from
May 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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