You are on page 1of 9

1.

inside interaction_prototype
2. forever stop 0
3. git pull
4. forever start index.js
5. exit

Last login: Fri Jan 3 16:49:20 on ttys000


juo-hsins-mbp:interaction_prototype laurachen$ ssh oda-exp-server
Last login: Tue Dec 31 21:38:31 2019 from cpe-74-64-34-156.nyc.res.rr.com

__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|

https://aws.amazon.com/amazon-linux-2/
8 package(s) needed for security, out of 17 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-40-39 ~]$ ls
index.js node_modules package.json package-lock.json public
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: Forever processes running
data: uid command script
forever pid id logfile uptime
data: [0] 0MIP /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 4953
4964 /home/ec2-user/.forever/0MIP.log STOPPED
[ec2-user@ip-172-31-40-39 ~]$ forever stop 0MIP
error: Forever cannot find process with id: 0MIP
[ec2-user@ip-172-31-40-39 ~]$ forever stop 0
error: Forever cannot find process with id: 0
[ec2-user@ip-172-31-40-39 ~]$ forever stop index.js
error: Forever cannot find process with id: index.js
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever index.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for
at least 1000ms
Server started on port 8000
***CREATING WEBSOCKET SERVER
***CREATED
events.js:282
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE: address already in use :::8000


at Server.setupListenHandle [as _listen2] (net.js:1308:16)
at listenInCluster (net.js:1356:12)
at Server.listen (net.js:1444:7)
at Object.<anonymous> (/home/ec2-user/index.js:10:8)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Emitted 'error' event on WebSocketServer instance at:
at Server.emit (events.js:305:20)
at emitErrorNT (net.js:1335:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 8000
}
error: Forever detected script exited with code: 1
^[[A^[[B^C
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ ps
PID TTY TIME CMD
17118 pts/1 00:00:00 bash
17691 pts/1 00:00:00 ps
[ec2-user@ip-172-31-40-39 ~]$ ps -a
PID TTY TIME CMD
17693 pts/1 00:00:00 ps
[ec2-user@ip-172-31-40-39 ~]$ sudo ps
PID TTY TIME CMD
17694 pts/1 00:00:00 sudo
17695 pts/1 00:00:00 ps
[ec2-user@ip-172-31-40-39 ~]$ forever list
info: No forever processes running
[ec2-user@ip-172-31-40-39 ~]$ forever index.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for
at least 1000ms
Server started on port 8000
***CREATING WEBSOCKET SERVER
***CREATED
events.js:282
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE: address already in use :::8000


at Server.setupListenHandle [as _listen2] (net.js:1308:16)
at listenInCluster (net.js:1356:12)
at Server.listen (net.js:1444:7)
at Object.<anonymous> (/home/ec2-user/index.js:10:8)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Emitted 'error' event on WebSocketServer instance at:
at Server.emit (events.js:305:20)
at emitErrorNT (net.js:1335:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EADDRINUSE',
errno: -98,
syscall: 'listen',
address: '::',
port: 8000
}
error: Forever detected script exited with code: 1
top

^C
[ec2-user@ip-172-31-40-39 ~]$ top

top - 23:50:18 up 3 days, 2:28, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 85 total, 1 running, 48 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 491196 total, 108056 free, 115512 used, 267628 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 362868 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


1963 root 20 0 37872 3960 2692 S 0.0 0.8 0:00.06 systemd-udevd
2639 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rpciod
2640 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 xprtiod
2643 root 16 -4 64192 2208 1616 S 0.0 0.4 0:00.76 auditd
2672 libstor+ 20 0 12608 1776 1608 S 0.0 0.4 0:00.48 lsmd
2673 root 20 0 13096 936 824 S 0.0 0.2 0:03.88 rngd
2675 dbus 20 0 60360 4080 3612 S 0.0 0.8 0:01.78 dbus-daemon
2678 rpc 20 0 73720 3568 2852 S 0.0 0.7 0:00.30 rpcbind
2680 chrony 20 0 122596 3948 3416 S 0.0 0.8 0:03.64 chronyd
2687 root 20 0 28468 2944 2588 S 0.0 0.6 0:01.09 systemd-logind
2691 root 20 0 97856 3208 2556 S 0.0 0.7 0:00.00 gssproxy
2908 root 20 0 100652 4608 2540 S 0.0 0.9 0:00.11 dhclient
3020 root 20 0 100652 4164 2140 S 0.0 0.8 0:00.36 dhclient
3162 root 20 0 90208 4796 3744 S 0.0 1.0 0:00.52 master
3165 postfix 20 0 90372 6904 5880 S 0.0 1.4 0:00.10 qmgr
3207 root 20 0 469736 13940 10572 S 0.0 2.8 0:00.30 amazon-ssm-agen
3209 root 20 0 241024 17716 16864 S 0.0 3.6 0:12.39 rsyslogd
3220 root 20 0 27872 2168 1964 S 0.0 0.4 0:00.00 atd
3223 root 20 0 24668 2740 2116 S 0.0 0.6 0:00.35 crond
3244 root 20 0 10536 1776 1648 S 0.0 0.4 0:00.01 agetty
3245 root 20 0 121288 1616 1488 S 0.0 0.3 0:00.03 agetty
3374 root 20 0 112764 7640 6596 S 0.0 1.6 0:01.04 sshd
3414 root 20 0 4260 104 0 S 0.0 0.0 0:00.00 acpid
3568 root 20 0 0 0 0 I 0.0 0.0 0:00.04 kworker/u30:2
4916 root 20 0 0 0 0 I 0.0 0.0 0:01.22 kworker/u30:0
4946 ec2-user 20 0 626748 44336 29756 S 0.0 9.0 0:05.52 node
16767 postfix 20 0 90296 6700 5688 S 0.0 1.4 0:00.00 pickup
17095 root 20 0 0 0 0 I 0.0 0.0 0:00.01 kworker/0:0
17100 root 20 0 150448 8704 7380 S 0.0 1.8 0:00.01 sshd
17117 ec2-user 20 0 150448 4532 3208 S 0.0 0.9 0:00.04 sshd
17118 ec2-user 20 0 127028 6364 3076 S 0.0 1.3 0:00.05 bash
17505 root 20 0 0 0 0 I 0.0 0.0 0:00.01 kworker/0:1
17692 root 20 0 0 0 0 I 0.0 0.0 0:00.00 kworker/0:2
17728 root 20 0 112764 7232 6220 S 0.0 1.5 0:00.00 sshd
17729 sshd 20 0 117100 5116 4044 S 0.0 1.0 0:00.00 sshd
[ec2-user@ip-172-31-40-39 ~]$ killall node
[ec2-user@ip-172-31-40-39 ~]$ ls
index.js node_modules package.json package-lock.json public
[ec2-user@ip-172-31-40-39 ~]$ rm -rf index.js
[ec2-user@ip-172-31-40-39 ~]$ ls
node_modules package.json package-lock.json public
[ec2-user@ip-172-31-40-39 ~]$ rm -rf ./*
[ec2-user@ip-172-31-40-39 ~]$ ls
[ec2-user@ip-172-31-40-39 ~]$ git clone https://github.com/oda-inc/oda-
experiments.git
-bash: git: command not found
[ec2-user@ip-172-31-40-39 ~]$ sudo aptitude install git
sudo: aptitude: command not found
[ec2-user@ip-172-31-40-39 ~]$ sudo apt-get install git
sudo: apt-get: command not found
[ec2-user@ip-172-31-40-39 ~]$ sudo yarn install git
sudo: yarn: command not found
[ec2-user@ip-172-31-40-39 ~]$ sudo yum install git
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core
| 2.4 kB 00:00:00
amzn2extra-docker
| 1.3 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:2.23.1-0.amzn2.0.2 will be installed
--> Processing Dependency: perl-Git = 2.23.1-0.amzn2.0.2 for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Processing Dependency: git-core-doc = 2.23.1-0.amzn2.0.2 for package: git-
2.23.1-0.amzn2.0.2.x86_64
--> Processing Dependency: git-core = 2.23.1-0.amzn2.0.2 for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Processing Dependency: emacs-filesystem >= 25.3 for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Processing Dependency: perl(Git::I18N) for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Processing Dependency: perl(Git) for package: git-2.23.1-0.amzn2.0.2.x86_64
--> Processing Dependency: libsecret-1.so.0()(64bit) for package: git-2.23.1-
0.amzn2.0.2.x86_64
--> Running transaction check
---> Package emacs-filesystem.noarch 1:25.3-3.amzn2.0.1 will be installed
---> Package git-core.x86_64 0:2.23.1-0.amzn2.0.2 will be installed
---> Package git-core-doc.noarch 0:2.23.1-0.amzn2.0.2 will be installed
---> Package libsecret.x86_64 0:0.18.5-2.amzn2.0.2 will be installed
---> Package perl-Git.noarch 0:2.23.1-0.amzn2.0.2 will be installed
--> Processing Dependency: perl(Error) for package: perl-Git-2.23.1-
0.amzn2.0.2.noarch
---> Package perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2 will be installed
--> Running transaction check
---> Package perl-Error.noarch 1:0.17020-2.amzn2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
===================================================================================
====
Package Arch
Version Repository
Size
===================================================================================
===================================================================================
====
Installing:
git x86_64
2.23.1-0.amzn2.0.2 amzn2-core
135 k
Installing for dependencies:
emacs-filesystem noarch
1:25.3-3.amzn2.0.1 amzn2-core
64 k
git-core x86_64
2.23.1-0.amzn2.0.2 amzn2-core
5.0 M
git-core-doc noarch
2.23.1-0.amzn2.0.2 amzn2-core
2.4 M
libsecret x86_64
0.18.5-2.amzn2.0.2 amzn2-core
153 k
perl-Error noarch
1:0.17020-2.amzn2 amzn2-core
32 k
perl-Git noarch
2.23.1-0.amzn2.0.2 amzn2-core
47 k
perl-TermReadKey x86_64
2.30-20.amzn2.0.2 amzn2-core
31 k

Transaction Summary
===================================================================================
===================================================================================
====
Install 1 Package (+7 Dependent packages)

Total download size: 7.9 M


Installed size: 40 M
Is this ok [y/d/N]: y
Downloading packages:
(1/8): emacs-filesystem-25.3-3.amzn2.0.1.noarch.rpm
| 64 kB 00:00:00
(2/8): git-2.23.1-0.amzn2.0.2.x86_64.rpm
| 135 kB 00:00:00
(3/8): git-core-doc-2.23.1-0.amzn2.0.2.noarch.rpm
| 2.4 MB 00:00:00
(4/8): libsecret-0.18.5-2.amzn2.0.2.x86_64.rpm
| 153 kB 00:00:00
(5/8): git-core-2.23.1-0.amzn2.0.2.x86_64.rpm
| 5.0 MB 00:00:00
(6/8): perl-Git-2.23.1-0.amzn2.0.2.noarch.rpm
| 47 kB 00:00:00
(7/8): perl-TermReadKey-2.30-20.amzn2.0.2.x86_64.rpm
| 31 kB 00:00:00
(8/8): perl-Error-0.17020-2.amzn2.noarch.rpm
| 32 kB 00:00:00
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
----
Total
17 MB/s | 7.9 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : git-core-2.23.1-0.amzn2.0.2.x86_64
1/8
Installing : git-core-doc-2.23.1-0.amzn2.0.2.noarch
2/8
Installing : 1:perl-Error-0.17020-2.amzn2.noarch
3/8
Installing : perl-TermReadKey-2.30-20.amzn2.0.2.x86_64
4/8
Installing : libsecret-0.18.5-2.amzn2.0.2.x86_64
5/8
Installing : 1:emacs-filesystem-25.3-3.amzn2.0.1.noarch
6/8
Installing : perl-Git-2.23.1-0.amzn2.0.2.noarch
7/8
Installing : git-2.23.1-0.amzn2.0.2.x86_64
8/8
Verifying : 1:emacs-filesystem-25.3-3.amzn2.0.1.noarch
1/8
Verifying : git-core-doc-2.23.1-0.amzn2.0.2.noarch
2/8
Verifying : libsecret-0.18.5-2.amzn2.0.2.x86_64
3/8
Verifying : perl-TermReadKey-2.30-20.amzn2.0.2.x86_64
4/8
Verifying : git-core-2.23.1-0.amzn2.0.2.x86_64
5/8
Verifying : perl-Git-2.23.1-0.amzn2.0.2.noarch
6/8
Verifying : 1:perl-Error-0.17020-2.amzn2.noarch
7/8
Verifying : git-2.23.1-0.amzn2.0.2.x86_64
8/8

Installed:
git.x86_64 0:2.23.1-0.amzn2.0.2

Dependency Installed:
emacs-filesystem.noarch 1:25.3-3.amzn2.0.1 git-core.x86_64 0:2.23.1-0.amzn2.0.2
git-core-doc.noarch 0:2.23.1-0.amzn2.0.2 libsecret.x86_64 0:0.18.5-2.amzn2.0.2
perl-Error.noarch 1:0.17020-2.amzn2 perl-Git.noarch 0:2.23.1-0.amzn2.0.2
perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2

Complete!
[ec2-user@ip-172-31-40-39 ~]$ git clone https://github.com/oda-inc/oda-
experiments.git
Cloning into 'oda-experiments'...
Username for 'https://github.com': jhclaura
Password for 'https://jhclaura@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/oda-inc/oda-experiments.git/'
[ec2-user@ip-172-31-40-39 ~]$ ssh-keygen -t rsa -b 4096 -C "laura@oda.co"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ec2-user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ec2-user/.ssh/id_rsa.
Your public key has been saved in /home/ec2-user/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:l0DX5YhmXABwButKzIICoSOdqTPK8hlbrYJ3KMaeDAY laura@oda.co
The key's randomart image is:
+---[RSA 4096]----+
|. oo=.oo... |
|.o o = o o.o |
|= + . . = . . |
|o+ o . + . |
|E . + . S o |
|=o o o . |
|=+..o . |
|B+==.. |
|o*+o. |
+----[SHA256]-----+
[ec2-user@ip-172-31-40-39 ~]$ cat /home/ec2-user/.ssh/id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAACAQDJzRk9/VShdPp+8vWKokk62hsLIWyBRKOBUG1MKZ2HUCcq7PJxEhF
7rBOKu301Q0QYTmSKLax5ajgcw6xgmcIgzp4pYgDrTI7/PLf65mnv1+o3+7sBmbh7rfvm71lylIiUthb6t+
fySuiMAbJb2p5he2HkCXMSjJKfFzxVGiO8/6dOCCVbfCrIdxZrXQuABwXDFGUppvvDYHIsLMFZhQM4D+/8W
sE5aYw3FnULUl8YfAKG20Vr9Ub1HNb06BqKNI5yoGop16S4JjsIhZMEj/4WgO7eMauexU0a+T1lXPjiiBDo
KNqvLwm0+4IySYiUe7Jm/M7Zc0kSP21xAHOZBhXb94AK8ZK5ZWmnDRlVQkKl5axNCOLPxzmJyHC1IQ5YMKO
ptbSuM1oFJk51pRfBoGW3MCKb2qi96dH+EWvzFrF0JXD2v4TNsagmSE1hO7jTSk6EHUnblXMQeQjC4lTXoR
BEuFU7/TxqtV1Jf4B8LDue+kcNYDDjsHpX6/ncLy6gE4OGMmukaEzSSQGWYpCxIN/jlOLLPRJ/jQqEWRY0i
qa79rKXVIAGB071YiDblN5BZgoS8WF90314yg+b51rDoU0d/rQ1zK0zJzjuIG8E8z/I7MAu2T6oiMYf7qc1
tZVa6ZeOmpVGorUmOH2d5LinzMAP8pPEkZCMn+Zk8/6tmjq14w== laura@oda.co
[ec2-user@ip-172-31-40-39 ~]$ ssh-add -K ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
[ec2-user@ip-172-31-40-39 ~]$ ssh
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
[ec2-user@ip-172-31-40-39 ~]$ eval `ssh-agent -s`
Agent pid 17871
[ec2-user@ip-172-31-40-39 ~]$ ssh-add -K ~/.ssh/id_rsa
unknown option -- K
usage: ssh-add [options] [file ...]
Options:
-l List fingerprints of all identities.
-E hash Specify hash algorithm used for fingerprints.
-L List public key parameters of all identities.
-k Load only keys and not certificates.
-c Require confirmation to sign using identities
-t life Set lifetime (in seconds) when adding identities.
-d Delete identity.
-D Delete all identities.
-x Lock agent.
-X Unlock agent.
-s pkcs11 Add keys from PKCS#11 provider.
-e pkcs11 Remove keys provided by PKCS#11 provider.
[ec2-user@ip-172-31-40-39 ~]$ ssh-add ~/.ssh/id_rsa
Identity added: /home/ec2-user/.ssh/id_rsa (/home/ec2-user/.ssh/id_rsa)
[ec2-user@ip-172-31-40-39 ~]$ git clone git@github.com:oda-inc/oda-experiments.git
Cloning into 'oda-experiments'...
The authenticity of host 'github.com (140.82.114.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,140.82.114.3' (RSA) to the list of known
hosts.
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 32 (delta 1), reused 31 (delta 0), pack-reused 0
Receiving objects: 100% (32/32), 241.84 KiB | 6.36 MiB/s, done.
Resolving deltas: 100% (1/1), done.
[ec2-user@ip-172-31-40-39 ~]$ ls
oda-experiments
[ec2-user@ip-172-31-40-39 ~]$ cd oda-experiments/
[ec2-user@ip-172-31-40-39 oda-experiments]$ ls
interaction_prototype
[ec2-user@ip-172-31-40-39 oda-experiments]$ cd interaction_prototype/
[ec2-user@ip-172-31-40-39 interaction_prototype]$ ls
index.js package.json package-lock.json public
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever start index.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for
at least 1000ms
info: Forever processing file: index.js
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever list
info: Forever processes running
data: uid command script
forever pid id logfile uptime
data: [0] cJWm /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 17901
17908 /home/ec2-user/.forever/cJWm.log STOPPED
[ec2-user@ip-172-31-40-39 interaction_prototype]$ node index.js
internal/modules/cjs/loader.js:969
throw err;
^

Error: Cannot find module 'express'


Require stack:
- /home/ec2-user/oda-experiments/interaction_prototype/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/home/ec2-user/oda-
experiments/interaction_prototype/index.js:3:17)
at Module._compile (internal/modules/cjs/loader.js:1139:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
at Module.load (internal/modules/cjs/loader.js:988:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:71:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/ec2-user/oda-experiments/interaction_prototype/index.js' ]
}
[ec2-user@ip-172-31-40-39 interaction_prototype]$ npm install
npm WARN live_interactions@1.0.0 No description
npm WARN live_interactions@1.0.0 No repository field.

added 59 packages from 45 contributors and audited 140 packages in 2.151s


found 0 vulnerabilities

[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever start index.js


warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for
at least 1000ms
info: Forever processing file: index.js
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever list
info: Forever processes running
data: uid command script
forever pid id logfile uptime
data: [0] cJWm /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 17901
17908 /home/ec2-user/.forever/cJWm.log STOPPED
data: [1] wLxW /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 17959
17966 /home/ec2-user/.forever/wLxW.log 0:0:0:8.269
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever stop 0
error: Forever cannot find process with id: 0
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever stop cJWm
error: Forever cannot find process with id: cJWm
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever list
info: Forever processes running
data: uid command script
forever pid id logfile uptime
data: [0] wLxW /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 17959
17966 /home/ec2-user/.forever/wLxW.log 0:0:0:36.206
[ec2-user@ip-172-31-40-39 interaction_prototype]$ forever list
info: Forever processes running
data: uid command script
forever pid id logfile uptime
data: [0] wLxW /home/ec2-user/.nvm/versions/node/v13.5.0/bin/node index.js 17959
17966 /home/ec2-user/.forever/wLxW.log 0:0:11:24.940000000000055
[ec2-user@ip-172-31-40-39 interaction_prototype]$ ^C
[ec2-user@ip-172-31-40-39 interaction_prototype]$ ^C
[ec2-user@ip-172-31-40-39 interaction_prototype]$ ^C
[ec2-user@ip-172-31-40-39 interaction_prototype]$ exit
logout
Connection to 52.14.118.204 closed.
juo-hsins-mbp:interaction_prototype laurachen$

You might also like