Tag: forever

 

How to keep ng serve, angular running on production server on ubuntu using nginx as website server

How to keep ng serve, angular running on production server on ubuntu using nginx as website server

Solution 1

$ sh -c ng serve -w –port 1355 –live-reload 1356 –aot –env=prod “/home/ubuntu/project/ukgoodbye/”

Solution 2

$ forever start node_modules/@angular/cli/bin/ng serve -w –port 1355 –live-reload 1356 –aot –env=prod “/home/ubuntu/project/ukgoodbye/”


sudo forever start node_modules/@angular/cli/bin/ng serve -w --port 1355 --live-reload 1356 --aot --env=prod 
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: node_modules/@angular/cli/bin/ng

Check the log:
$ nano -v /home/ubuntu/.forever/dfyn.log

sudo forever start –watch app.js that will run sails lift

Configure and schedule IP SLA

Configure and schedule IP SLA
The example is how configure IP SLA 13 and 14 on a Cisco router, version of Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4) using GNS3

R3(config)#ip sla 13
R3(config-ip-sla)#?
IP SLAs entry configuration commands:
dhcp         DHCP Operation
dns          DNS Query Operation
ethernet     Ethernet Operations
exit         Exit Operation Configuration
ftp          FTP Operation
http         HTTP Operation
icmp-echo    ICMP Echo Operation
icmp-jitter  ICMP Jitter Operation
mpls         MPLS Operation
path-echo    Path Discovered ICMP Echo Operation
path-jitter  Path Discovered ICMP Jitter Operation
tcp-connect  TCP Connect Operation
udp-echo     UDP Echo Operation
udp-jitter   UDP Jitter Operation
voip         Voice Over IP Operation

R3(config-ip-sla)#icmp-echo 172.14.0.3 source-ip 192.168.2.1
R3(config-ip-sla)#frequency 300
R3(config-ip-sla)#ip sla schedule 13 life forever start-time now

Configure the IP SLA 14

R3(config)#ip sla 14
R3(config-ip-sla)#icmp-echo 192.168.16.1 source-ip 192.168.2.1
R3(config-ip-sla)#ip sla schedule 14 life forever start-time now
Configure IP SLA, cisco IOS 15 GNS3
Verify IP SLA

R3#show ip sla summary
IPSLAs Latest Operation Summary
Codes: * active, ^ inactive, ~ pending

ID Type Destination Stats Return Last
(ms) Code Run
———————————————————————–
*13 icmp-echo 172.14.0.3 – Timeout 2 minutes, 57 seconds ago

*14 icmp-echo 192.168.16.1 RTT=76 OK 25 seconds ago

[download id=”4264″]