Hoy realizaremos la instalacion de odoo 13 en una maquina virtual centos 8 minimal desde 0.
1. Verificamos si tenemos instalado DNF con el Siguiente comando.
siguiendo lo de mas abajo.
Hoy realizaremos la instalacion de odoo 13 en una maquina virtual centos 8 minimal desde 0.
1. Verificamos si tenemos instalado DNF con el Siguiente comando.
$ sudo dnf install epel-release
$ sudo dnf install python36 python36-devel git gcc wget nodejs libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel
$ sudo dnf install postgresql-server postgresql-contrib
$ sudo postgresql-setup initdb
$ sudo systemctl restart postgresql $ sudo systemctl enable postgresql
$ sudo systemctl status postgresql
$ sudo dnf install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm
$ sudo useradd -m -U -r -s /bin/bash odoo -d /opt/odoo
$ sudo su - odoo
$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo/odoo13
$ cd /opt/odoo $ python3 -m venv odoo13-venv
$ source odoo13-venv/bin/activate
pip install --upgrade pip
$ pip3 install -r odoo13/requirements.txt
$ deactivate && exit
$ sudo mkdir /opt/odoo/odoo13-custom-addons $ sudo chown -R odoo:odoo /opt/odoo/odoo13-custom-addons
$ sudo mkdir /var/log/odoo13 $ sudo touch /var/log/odoo13/odoo.log $ sudo chown -R odoo:odoo /var/log/odoo13/
$ sudo vim /etc/odoo.conf
[options]
; This is the password that allows database operations:
admin_passwd = strong_password
db_host = False
db_port = False
db_user = odoo
db_password = False
xmlrpc_port = 8069
; longpolling_port = 8072
logfile = /var/log/odoo13/odoo.log
logrotate = True
addons_path = /opt/odoo/odoo13/addons,/opt/odoo/odoo13-custom-addons
$ sudo vim /etc/systemd/system/odoo13.service
[Unit] Description=Odoo13 #Requires=postgresql-10.6.service #After=network.target postgresql-10.6.service [Service] Type=simple SyslogIdentifier=odoo13 PermissionsStartOnly=true User=odoo Group=odoo ExecStart=/opt/odoo/odoo13-venv/bin/python3 /opt/odoo/odoo13/odoo-bin -c /etc/odoo.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target
$ sudo systemctl daemon-reload
$ sudo systemctl start odoo13 $ sudo systemctl enable odoo13
$ sudo systemctl status odoo13
$ yum -y install net-tools
$ sudo netstat -pnltu | grep 8069
$ sudo firewall-cmd --add-port=8069/tcp --zone=public --permanent $ sudo firewall-cmd --reload
$ sudo dnf install nginx
$ sudo vim /etc/nginx/conf.d/odoo13.conf
siguiendo lo de mas abajo.
upstream odoo { server 127.0.0.1:8069; } server { listen 80; server_name server-IP; access_log /var/log/nginx/odoo13.access.log; error_log /var/log/nginx/odoo13.error.log; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_pass http://odoo; } location ~* /web/static/ { proxy_cache_valid 200 90m; proxy_buffering on; expires 864000; proxy_pass http://odoo; } gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript; gzip on; }
$ sudo systemctl start nginx $ sudo systemctl enable nginx
$ sudo systemctl status nginx
http://tu-server/
500 internal server error (Linux)
OperationalError: FATAL: role "root" does not exist
You find this error in file : /var/log/postgrsql/postgrsql-10-main.log (on linux system)
The solution may be :
1- Open Terminal and enter => sudo su postgres
2- Enter password for postgres System user (if it is necessary)
3- createuser odoo -s
4- psql template1
5- alter role odoo with password 'yourpassword';
6- \q
7- exit
8- service odoo restart
Now try again to localhost:8069
*The C programming language provides many standard library functions for file input and output. These functions make up the bulk of the C standard library header <stdio.h>.
Each of the header files has a specific purpose and any or all of them can be included in any program.
Your C compiler uses the double quote marks to indicate that the search for the "include" file will begin in the current directory, and if it not found there, the search will continue in the "include" directory as set up in the environment.
C – stdio.h library functions
********All C inbuilt functions which are declared in stdio.h header file are given below.********
List of inbuilt C functions in stdio.h file:
printf() This function is used to print the character, string, float, integer, octal and hexadecimal values onto the output screen
scanf() This function is used to read a character, string, numeric data from keyboard.
getc() It reads character from file
gets() It reads line from keyboard
getchar() It reads character from keyboard
puts() It writes line to o/p screen
putchar() It writes a character to screen
clearerr() This function clears the error indicators
f open() All file handling functions are defined in stdio.h header file
f close() closes an opened file
getw() reads an integer from file
putw() writes an integer to file
f getc() reads a character from file
putc() writes a character to file
f putc() writes a character to file
f gets() reads string from a file, one line at a time
f puts() writes string to a file
f eof() finds end of file
f getchar reads a character from keyboard
f getc() reads a character from file
f printf() writes formatted data to a file
f scanf() reads formatted data from a file
f getchar reads a character from keyboard
f putchar writes a character from keyboard
f seek() moves file pointer position to given location
SEEK_SET moves file pointer position to the beginning of the file
SEEK_CUR moves file pointer position to given location
SEEK_END moves file pointer position to the end of file.
f tell() gives current position of file pointer
rewind() moves file pointer position to the beginning of the file
putc() writes a character to file
sprint() writes formatted output to string
sscanf() Reads formatted input from a string
remove() deletes a file
fflush() flushes a file
The FDA also shortened the time for booster shots from at least six months after completion of the initial series to at least five months, for everyone aged 12 and older.
WASHINGTON, Jan. 3 (Xinhua) -- The U.S. Food and Drug Administration (FDA) on Monday expanded the emergency use authorization for the Pfizer-BioNTech COVID-19 vaccine boosters to children ages 12 to 15.
The FDA also shortened the time for booster shots from at least six months after completion of the initial series to at least five months, for everyone aged 12 and older.
The agency has determined that the protective health benefits of a single booster dose of the Pfizer-BioNTech COVID-19 vaccine to provide continued protection against COVID-19 and the associated serious consequences outweigh the potential risks in individuals ages 12 to 15.
The agency said that it found "no new safety concerns" following a booster shot in young teenagers, and that there were no new reports of two types of heart inflammation called myocarditis or pericarditis linked to the boosters.
The decision came as the Omicron variant is spreading rapidly across the United States and has led to record high hospitalizations among younger people.