$ ps aux | grep configurable-http-proxy $ kill ####
sudo service nginx stop sudo service nginx start sudo service nginx restart nginx -t
sudo shutdown -r now
sudo /home/peter/anaconda3/bin/jupyterhub
sudo systemctl start jupyterhub sudo systemctl <start|stop|status> jupyterhub
$ export OAUTH_CLIENT_SECRET=xxxxxxxxxxx
#change the systemctl start jupyterhub configurations
$ sudo systemctl daemon-reload $ sudo systemctl start jupyterhub
Similar to the above but with a couple changes. Assuming you're using /opt/anaconda3/jupyterhub for your configs, save this as /etc/systemd/system/jupyterhub.service
[Unit] Description=Jupyterhub After=syslog.target network.target
[Service] User=root Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/anaconda3/bin" ExecStart=/opt/anaconda3/bin/jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
[Install] WantedBy=multi-user.target