sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
xz -d Python-3.6.0.tar.xz
tar -xvf Python-3.6.0.tar
cd Python-3.6.0
./configure
make
make install
python3.6 --version
Python3.6.0
sudo apt-get install python3-pip
pip3 install requests
pip3 install beautifulsoup4
pip3 install mysql-connector-python-rf
pip3 install lxml
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
v8.9.3
npm --version
5.5.1
sudo apt-get install mysql-server mysql-client
CREATE DATABASE xxxx;
CREATE USER 'xxx'@'localhost' IDENTIFIED BY 'xxx';
GRANT ALL PRIVILEGES ON xxxx.* to xxx@localhost ;
sudo apt-get install nginx php7.0 php7.0-fpm
modify Nginx config file /etc/nginx/sites-enabled/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi.conf;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
create file /var/www/index.php
<?php phpinfo(); ?>
go to link http://url
apt-get install phpmyadmin
cp -r /usr/share/phpmyadmin /var/www
go to link http://url/phpmyadmin
cd shell
./runTracker.sh
cd AmazonPriceTracker
npm install
npm start
npm install -g forever
forever start bin/www
forever list // list all node js instance
go to link: http://35.194.31.135/
input 'corntab -e'
1 1 * * * . /etc/profile;/bin/sh /**/**/AmazonPriceTracker/shell/runTracker.sh