node -v
into the terminal, you should see v6.11.4 or greater (current version being used at the time of the making of this tutorial)npm -v
, you should see 3.10.10 (or higher)(skip this section and see below for MySQL Instructions if coming from MySQL course)
touch mongodb-org-3.6.repo
into the terminal[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
sudo mv mongodb-org-3.6.repo /etc/yum.repos.d
sudo yum install -y mongodb-org
cd
into the terminal then enter the following commands:mkdir data
echo 'mongod --dbpath=data --nojournal' > mongod
chmod a+x mongod
./mongod
cd
to change directories into root ~ before running ./mongod
ctrl + c
each time you're done workingThat's it! You're all set :)
Enter sudo service mysqld start
into the terminal
Enter /usr/libexec/mysql55/mysql_secure_installation
and follow the steps for setting up your root account and password.
/usr/libexec/mysql55/mysqladmin -u root password 'new-password'
'new-password'
with your password/usr/libexec/mysql55/mysql_secure_installation
and enter the password you just createdStart the mysql shell with root user access by entering: mysql -uroot -p
and typing in your root password when prompted
Once inside of the shell test it out with the following commands:
CREATE database test;
USE test;
CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20), species VARCHAR(20));
INSERT INTO pet (name, owner, species) VALUES('Loki', 'Ian', 'Dog');
SELECT * FROM pet;
Result:
+------+-------+---------+
| name | owner | species |
+------+-------+---------+
| Loki | Ian | Dog |
+------+-------+---------+
exit
or pressing ctrl + c
sudo service mysqld stop