This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MailPro = require('mailpro') | |
var mailPro = new MailPro({ | |
privateKey: "key-xxxxxxxxxxxxxxx", | |
publicKey: "pubkey-xxxxxxxxxxxxx", | |
domain: "domain.com", | |
secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
}); | |
// You can start using any of the methods below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://raw.githubusercontent.com/knowrick/DynamoDB/master/setup.sh | |
sudo sh setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -ntlp | grep LISTEN | |
tail -f /var/log/system.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl start dynamodb.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl stop dynamodb.service | |
sudo systemctl start dynamodb.service | |
sudo systemctl status dynamodb.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl daemon-reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch /etc/systemd/system/dynamodb.service | |
vim /etc/systemd/system/dynamodb.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=DynamoDB on Localhost | |
After=network.target | |
Documentation=https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html | |
[Service] | |
Environment=deploydir=/opt/dynamodb | |
Type=simple | |
User=dynamodb | |
Group=dynamodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useradd dynamodb | |
chown -R dynamodb:dynamodb /opt/dynamodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /opt/dynamodb | |
mv * /opt/dynamodb | |
cd /opt/dynamodb | |
mkdir /opt/dynamodb/data | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
chmod -R g+w ./data |