Closed MuruganChinnaamy closed 4 years ago
sudo ufw status Status: inactive root@odoo:/etc/nginx/sites-enabled# sudo ufw enable
root@odoo:/etc/nginx/sites-enabled# sudo ufw status Status: active
To Action From
Nginx Full ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)
murugan@murugan:~$ ssh root@165.22.213.250 ssh: connect to host 165.22.213.250 port 22: Connection timed out
sudo ufw allow 22
murugan@murugan:~$ ssh root@165.22.213.250 Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-99-generic x86_64)
Support: https://ubuntu.com/advantage
System information as of Sun May 17 08:25:58 UTC 2020
System load: 0.01 Processes: 129 Usage of /: 1.9% of 154.90GB Users logged in: 1 Memory usage: 2% IP address for eth0: 165.22.213.250 Swap usage: 0%
0 packages can be updated. 0 updates are security updates.
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
Last login: Sun May 17 08:25:37 2020 root@odoo:~#
Port Enable : sudo ufw allow 8088
https://www.howtoforge.com/tutorial/how-to-install-postgresql-and-phppgadmin-on-ubuntu-1804/
https://linuxize.com/post/how-to-deploy-odoo-11-on-ubuntu-18-04/
mkdir opt cd opt
git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 odoo11/
python3 -m venv odoo11-venv
source opt/odoo11-venv/bin/activate
pip3 install wheel
pip3 install -r odoo11/requirements.txt
sudo apt-get install python3-pip
pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd
sudo apt-get install libpq-dev pip3 install psycopg2
pip3 install Werkzeug==0.11.15
Configure Nginx as a SSL termination proxy #
If you want to use Nginx as a SSL termination proxy make sure that you have met the following prerequisites:
sudo apt update
apt-get install net-tools
sudo netstat -tulpn
kill appache server
sudo kill -2
sudo fuser -k 80/tcp
sudo fuser -k 443/tcp
sudo ufw allow 'Nginx Full'
sudo ufw status
Secure Nginx with Let's Encrypt on Ubuntu 18.04
sudo apt install certbot
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
sudo certbot certonly --agree-tos --email ec.murugan001@gmail.com --webroot -w /var/lib/letsencrypt/ -d palacode.in -d www.palacode.in