fixes in server installation instructions

azivner 2018-10-25 16:49:14 +02:00
parent 487f31dd61
commit b0f6d4c9f4
3 changed files with 20 additions and 6 deletions

@ -1,4 +1,4 @@
Trilium can be run as docker image. This is useful for server deployments.
Trilium can be run as docker image. This is recommended way to deploy Trilium on servers.
Docker images are published on docker hub: https://hub.docker.com/r/zadam/trilium/

@ -1,4 +1,4 @@
This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file. This is the recommended method method on how to install Trilium on your server.
This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file.
## Steps
@ -7,10 +7,24 @@ This is essentially Trilium sources + node modules + node.js runtime packaged in
trilium-linux-x64-server-[VERSION].7z](https://github.com/zadam/trilium/releases/latest) (notice -server suffix) on your server
* unpack the archive, e.g. using `p7zip -d trilium-linux-x64-server-[VERSION].7z`
* `cd trilium-linux-x64-server`
* `nohup ./trilium.sh &`
* this will start the trilium application in background and keep it running even after your ssh connection disconnects
* `./trilium.sh`
* you can open the browser and open http://[your-server-hostname]:8080 and you should see Trilium initialization page
The problem with above steps is that once you close the SSH connection, trilium process is terminated. To avoid that, kill it (with e.g. `CTRL-C`) and run again like this: `nohup ./trilium &`
## Common issues
### Outdated glibc
```
Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/www/virtual/.../node_modules/@mlink/scrypt/build/Release/scrypt.node)
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
```
If you get an error like this, you need to either upgrade your glibc (typically by upgrading to up to date distribution version) or use some other [[server installation]] method.
## TLS
Don't forget to [[configure TLS|TLS configuration]], which is required for secure usage!

@ -2,8 +2,8 @@ This pages describes installing Trilium on your own server. You might want to do
There are three options how to do this, each one with some advantage:
* Recommended: [[Packaged server installation]]
* [[Docker|Docker server installation]]
* Recommended: [[Docker|Docker server installation]]
* [[Packaged server installation]]
* [[Manual installation|Manual server installation]]
## Configuration