Server Stuff

Posted on 20.12.2017

NGINX config files

cd /etc/nginx/sites-available
cd /etc/nginx/snippets

service nginx stop
service nginx restart
nginx -t

sudo ln -s name /etc/nginx/sites-enabled/name

CouchDB Nginx conf SSL Checker

fix ssl labs server rating ubuntu nginx

link

Netstat

netstat -plutn

CouchDB config file

nano /etc/couchdb/local.ini

/etc/init.d/couchdb stop
/etc/init.d/couchdb restart

/home/ctec3905

Files:
/usr/local/var/lib/couchdb

CertBot

  • generate an SSL certificae certbot certonly
  • show certificates certbot certificates

SSL certificates

cd /etc/letsencrypt/live

Screen

  • show all running screens screen -ls
  • start new screen with name screen -S name
  • attach to a running session screen -x
  • attach to session name screen -r name