Setelah kita memenuhi semua prasayarat untuk Odoo ERP development maka kita akan menghidupkan server Odoo ERP dengan menjalankan odoo-bin.

Menjalankan Odoo ERP server dengan odoo-bin adalah seperti berikut ini

    1. Menjalankan odoo-bin
      # cd $HOME/src/odoo/
      # ./odoo-bin --addons-path="addons/" -d rd-demo
      ...
      2022-01-09 00:00:55,890 23967 INFO rd-demo odoo.modules.loading: Loading module web_kanban_gauge (6/7)
      2022-01-09 00:00:55,938 23967 INFO rd-demo odoo.modules.loading: loading web_kanban_gauge/views/web_kanban_gauge_templates.xml
      2022-01-09 00:00:55,974 23967 INFO rd-demo odoo.modules.loading: Module web_kanban_gauge: loading demo
      2022-01-09 00:00:55,982 23967 INFO rd-demo odoo.modules.loading: Module web_kanban_gauge loaded in 0.09s, 63 queries
      2022-01-09 00:00:55,983 23967 INFO rd-demo odoo.modules.loading: Loading module web_tour (7/7)
      2022-01-09 00:00:56,022 23967 INFO rd-demo odoo.modules.registry: module web_tour: creating or updating database tables
      2022-01-09 00:00:56,067 23967 INFO rd-demo odoo.modules.loading: loading web_tour/security/ir.model.access.csv
      2022-01-09 00:00:56,084 23967 INFO rd-demo odoo.modules.loading: loading web_tour/security/ir.rule.csv
      2022-01-09 00:00:56,099 23967 INFO rd-demo odoo.modules.loading: loading web_tour/views/tour_templates.xml
      2022-01-09 00:00:56,148 23967 INFO rd-demo odoo.modules.loading: loading web_tour/views/tour_views.xml
      2022-01-09 00:00:56,181 23967 INFO rd-demo odoo.modules.loading: Module web_tour: loading demo
      2022-01-09 00:00:56,182 23967 INFO rd-demo odoo.modules.loading: loading web_tour/data/web_tour_demo.xml
      2022-01-09 00:00:56,211 23967 INFO rd-demo odoo.modules.loading: Module web_tour loaded in 0.23s, 232 queries
      2022-01-09 00:00:56,211 23967 INFO rd-demo odoo.modules.loading: 7 modules loaded in 2.88s, 3144 queries (+0 extra)
      2022-01-09 00:00:56,409 23967 INFO rd-demo odoo.modules.loading: Modules loaded.
      2022-01-09 00:01:56,484 23967 INFO rd-demo odoo.addons.base.models.ir_cron: Starting job `Base: Auto-vacuum internal data`.
      2022-01-09 00:01:56,545 23967 INFO rd-demo odoo.addons.base.models.ir_attachment: filestore gc 56 checked, 2 removed
      2022-01-09 00:01:56,582 23967 INFO rd-demo odoo.addons.base.models.res_users: GC'd 0 user log entries
      2022-01-09 00:01:56,613 23967 INFO rd-demo odoo.addons.base.models.ir_cron: Job `Base: Auto-vacuum internal data` done.
      
    2. Login ke Odoo port 8069


    3. Seting master password di /web/database/manager


      Tampilan di atas belum perlu diisi karena kita belum menyediakan tempat menampung konfigurasinya
    4. Melihat update proses di odoo-bin

    5. Melihat daftar database dengan  perintah pgsl -l

    6. Melihat script Odoo production
      root@localhost:~# systemctl status odoo
      ● odoo.service - Odoo Open Source ERP and CRM
           Loaded: loaded (/lib/systemd/system/odoo.service; enabled; vendor preset: enabled)
           Active: active (running) since Mon 2021-11-29 08:14:31 UTC; 1 months 10 days ago
         Main PID: 826 (python3)
            Tasks: 4 (limit: 2279)
           Memory: 176.2M
           CGroup: /system.slice/odoo.service
                   └─826 python3 /usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log
      
      Nov 29 08:14:31 localhost systemd[1]: Started Odoo Open Source ERP and CRM.
      Dec 06 21:27:07 localhost odoo[826]: Warn: Can't find .pfb for face 'Times-Roman'
      root@localhost:~# cat /lib/systemd/system/odoo.service
      [Unit]
      Description=Odoo Open Source ERP and CRM
      After=network.target
      
      [Service]
      Type=simple
      User=odoo
      Group=odoo
      ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log
      KillMode=mixed
      
      [Install]
      WantedBy=multi-user.target
      

      Terlihat bahwa script untuk menghidupkan Odoo adalah

      /usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log
    7. Mengaktifkan HTTPS
      Untuk mengaktifkan SSL prinsipnya seperti https://www.proweb.co.id/articles/odoo-addons/instal-lets-encryt.html , kemudian script odoo-bin menjadi

       ./odoo-bin --addons-path="addons/" -d rd-demo --proxy-mode

Informasi lebih lanjut silahkan mengunjungi
1. https://www.odoo.com/documentation/14.0/developer/howtos/rdtraining/02_setup.html .
2. https://www.odoo.com/documentation/14.0/developer/misc/other/cmdline.html .
3. https://www.postgresql.org/docs/12/app-psql.html .
4. https://www.postgresql.org/docs/12/index.html .
5. https://www.pgadmin.org/ .
6. https://dbeaver.io/

Kunjungi www.proweb.co.id untuk menambah wawasan anda.

Jika anda tertarik mengenai aplikasi Odoo ERP silahkan mengisi form di bawah ini

Menjalankan odoo-bin untuk Odoo ERP daemon