Sign in


This usually happens due to different versions of mongodump vs your mongoDB server.

But adding --forceTableScan switch can solve the problem

mongodump --forceTableScan -d database_name

  1. Create myapp.service file

[Unit]
Description=myapp

[Service]
ExecStart=<path>/start.sh
# Required on some systems
WorkingDirectory=<path>
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
# Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=backend
User=root
Group=root
EnvironmentFile=<path>/.env

[Install]
WantedBy=multi-user.target

2. Copy your service file into the /etc/systemd/system

3. Start it with systemctl start myapp

4. enable app: systemctl enable myapp

5. see log: systemctl status myapp.service


  1. Install WordPress on VPS Ubuntu

1.1 Install Apache Web Server

sudo apt-get install apache2
sudo service apache2 start

Change to another port if PORT 80 is using by another program

sudo vim /etc/apache2/ports.conf

When done, try to access your server by

http://your-ip-serve

  1. Register EC2.

https://ap-southeast-1.console.aws.amazon.com/

choose “Services” and find “EC2”

Create Linux Host: “Launch Instance” > “Launch Instance”

listen My

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store