Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

How to change the default port (8069) used by odoo server

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
port
9 Відповіді
149199 Переглядів
Аватар
George Rodopoulos

How can I change the native port of odoo server in order to make it listen to different port than 8069 ? (needed in order to run multiple server instances at the same time)

Here I'm NOT looking for solutions that forward/redirect/reroute traffic to port 8069 like these:

  1. Reverse proxy through Apache or Nginx
  2. Port forwarding / port routing through e.g. iptables
1
Аватар
Відмінити
Аватар
Janeesh
Найкраща відповідь

There is one more option. If you need to change port number permanently to another, then you can change it in config file,

In openerp/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=8069,
                         help="specify the TCP port for the XML-RPC protocol", type="int")

Change this 8069 to any port number you wish to use.

11
Аватар
Відмінити
George Rodopoulos
Автор

True that's one more option but I would avoid making any changes in odoo server code files. In order to be 'upgrade safe' I try to make any changes in server conf file or in custom modules. Thanks for the extra info though.

Аватар
George Rodopoulos
Автор Найкраща відповідь

Let's say that we want to use the port 8070 instead of 8069

We can do this by setting the server option xmlrpc-port to xmlrpc_port = 8070

This can be done by starting the server manually with this option using something like this (paths may be different):

./openerp-server --config=/etc/odoo-server.conf --xmlrpc-port=8070

Or by adding in the config file (e.g. /etc/odoo-server.conf)

xmlrpc_port = 8070

There is one more option (added by Janeesh below) but it involves editing odoo server files, something I would avoid in order to keep any changes 'upgrade safe':

In openerp/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=8069,
                         help="specify the TCP port for the XML-RPC protocol", type="int")

Change this 8069 to any port number you wish to use.

9
Аватар
Відмінити
Stephen Mack

do you know which method odoo uses in their saas offerings?

George Rodopoulos
Автор

Can you please make your question a little more specific? You ask about the method they use to do what? To run multiple instances? If you ask about running multiple instances I can only assume (I don't really know for sure) that they use reverse proxy (probably using nginx).

om

Thanks for the tip. I have noticed something strange though, when changing the port in the conf file everything loads fine but headers and footers are missing from reports - like when printing an invoice it's distorted with no header and footer. What would be the cause of this? Thanks.

George Rodopoulos
Автор

I can't reproduce the problem that you report. I can normally print invoices to pdf and headers and footers show up without any problem. If you have a problem when you change the xmlrpc_port option which you don't have if you leave it as it is by default, probably this is a bug. If you want, please create a new question about your issue and post a link here with a comment.

om

Thanks George, I opened a question here: https://www.odoo.com/forum/help-1/question/changing-xmlrpc-port-from-8069-to-8070-causes-report-issues-60767

Аватар
Jasad Moozhiyan
Найкраща відповідь

Either you can run your odoo server like

python odoo-server --xmlrpc-port=your_port_number

If you wish to do permanently, then you can modify odoo/tools.config.py     

group.add_option("--xmlrpc-port", dest="xmlrpc_port", my_default=your_port_number, help="specify the TCP port for the XML-RPC protocol", type="int") 

1
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
Change the password resend links etc after changing the port
port
Аватар
0
бер. 15
4047
RuntimeError: Couldn't bind the websocket. Is the connection opened on the evented port (8072)? v17 & v18
configuration port
Аватар
Аватар
1
вер. 25
3581
change to port 80 instead of 8069 Вирішено
port 80
Аватар
Аватар
Аватар
Аватар
Аватар
9
лют. 24
130098
Module porting how-to? Вирішено
modules port
Аватар
Аватар
Аватар
4
жовт. 16
6211
Separate databases on different ports Вирішено
database port
Аватар
Аватар
Аватар
Аватар
Аватар
8
груд. 23
22659
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now