Maintaining Ubuntu Droplet
by John Vincent
Posted on August 9, 2018
This is part of a series of discussions regarding Deploying to a Digital Ocean Droplet. For more details, please see Overview of johnvincent.io website
Maintaining Ubuntu Droplet
Webmaster Tools
and review crawl statistics
Update Ubuntu
sudo apt-get update
did not retrieve any updates, just gets package information.
sudo apt-get dist-upgrade
older dist:
sudo apt-get upgrade
continue?
Y
A new version of /boot/grub/menu.lst is available, but the version installed currently has been locally modified.
Keep the local version currently installed.
Then restart the droplet
Restart the droplet
sudo reboot
Shutdown / Restart Droplet
Login to digitalocean.com
Select droplet
Console:
login as root
shutdown -h now
This will shut down your operating system, flush any pending changes to the disk, and then terminate power to your server.
Visit the control panel and select the option to power on your Droplet.
Verify droplet is not running
- Dashboard
- Access
- Launch Console
- Verify droplet is not running.
To start the droplet
- Dashboard
- Power
- Power cycle
Verify droplet is running
- Access
- Launch Console
- Login to verify droplet is running.
Renew SSL Certificates
See Update SSL Certificates to Ubuntu at Digital Ocean
Nginx
Restart Nginx
sudo nginx -t
sudo systemctl restart nginx
Stop Nginx
sudo systemctl stop nginx
Troubleshooting
nginx:
ps -ef | grep nginx
sudo nginx -t
sudo systemctl restart nginx
nginx enabled servers:
cd /etc/nginx/sites-enabled
ls -la
verify running valid server blocks.
nginx logs:
cd /var/log/nginx
vi *.log
PM2
pm2 restart all
pm2 list
pm2 monit
swap
sudo swapon --summary
free -h
Digital Ocean
- Building and deploying MyTunes to johnvincent.io
- Building and deploying React Github Helper App to johnvincent.io
- Configuring Google Domains
- Create Ubuntu Droplet at Digital Ocean
- Create Ubuntu Droplet at Digital Ocean
- Deploy Feediator to Digital Ocean
- Deploy to Droplet
- Feediator Overview
- Feediator Project
- Maintaining Ubuntu Droplet
- Maintaining Ubuntu Droplet
- Overview of Deployment of a Node API Server
- Overview of johnvincent.io
- Overview of johnvincent.io Jekyll website
- Overview of React Gomoku
- Overview of React Hangman
- Overview of React Lights Out
- Overview of React Yahtzee
- TaskMuncher Overview
Johnvincent.io
- Backup Website from Digital Ocean
- Building and deploying MyTunes to johnvincent.io
- Building and deploying React Github Helper App to johnvincent.io
- Configure HTTP Nginx
- Configure HTTPS Nginx
- Configure PM2
- Configuring Google Domains
- Create SSL Certificates
- Create Ubuntu Droplet at Digital Ocean
- Deploy to Droplet
- Google Webmaster Tools
- Install Ubuntu Nginx
- Maintaining Ubuntu Droplet
- Overview of Deployment of a Node API Server
- Overview of johnvincent.io
- Overview of React Gomoku
- Overview of React Hangman
- Overview of React Lights Out
- Overview of React Yahtzee
- Restricting Access with HTTP Basic Authentication
- Update SSL Certificates
Ubuntu
- Configure HTTP Nginx
- Configure HTTP Nginx
- Configure HTTPS Nginx
- Configure HTTPS Nginx
- Configure PM2
- Create SSL Certificates
- Create SSL Certificates
- Create Ubuntu Droplet at Digital Ocean
- Create Ubuntu Droplet at Digital Ocean
- Deploy Feediator to Digital Ocean
- Install Jekyll Ubuntu
- Install Ubuntu Mongo
- Install Ubuntu Nginx
- Install Ubuntu Nginx
- Maintaining Ubuntu Droplet
- Maintaining Ubuntu Droplet
- SSH to Github
- Update SSL Certificates
- Update SSL Certificates