Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. 其它开源ERP
  4. Tryton 讨论
  5. Tryton服务部署-服务端

Tryton服务部署-服务端

Scheduled Pinned Locked Moved Tryton 讨论
3 Posts 2 Posters 11.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d_yang
    wrote on last edited by
    #1

    看着这个板块没有帖子,贴点。


    通过以下的步骤,你可以安装,运行起来一个最简化的tryton的服务器。
    要求的知识:基本的python知识。

    1. 安装ActiveState ActivePython 2.6, 安装到默认位置。下载地址: [检测到链接无效,已移除] 我偏爱2.6版本的。tryton要求python >= 2.4。
    2. 安装setuptools. 下载地址: [检测到链接无效,已移除] (2011.2.10的版本), 下载这个:setuptools-0.6c11.win32-py2.6.exe
    3. 把"C:\Python26\Scripts"加入系统的path里。这样就可以直接用easy_install (我的电脑-属性-高级-环境变量)
    4. 下载trytond代码, 地址: [检测到链接无效,已移除] 看清楚版本,可以下载当前版本,也可以下载某个版本号的。
    5. 解压在任意文件夹里,如D:\trytond
    6. 命令行里运行, easy_install lxml==2.2.2  一定要这个版本,要不然装不上。
    7. 继续easy_install python-dateutil,  easy_install relatorio,  easy_install Genshi(我没装)    (或者egenix-mx-base也需要,但是我没装)
    8. 命令行里进入 D:\trytond  运行, python bin\trytond
    这样就可以看到

    <br />(cap_env) F:\Code\trytond&gt;python bin\trytond<br />[Thu Feb 10 11:08:48 2011] INFO:server:using F:\Code\trytond\etc\trytond.conf as<br /> configuration file<br />[Thu Feb 10 11:08:48 2011] INFO:server:initialising distributed objects services<br /><br />[Thu Feb 10 11:08:55 2011] INFO:modules:ir:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:webdav:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:res:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:product:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:workflow:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:fg:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:modules:test:registering classes<br />[Thu Feb 10 11:08:55 2011] INFO:server:starting NetRPC protocol, port 8070<br />[Thu Feb 10 11:08:55 2011] INFO:server:waiting for connections...<br />
    




    哦,忘记一步,以上的步骤是为了安装一个最简化的trytond,使用的数据库是sqlite,(如果你需要使用mysql,postgresql, 则需要安装对应的驱动,python-mysql, psycopg2),需要配置一下etc目录下的配置文件:
    (两个部分,其他的省略了)

    <br /><br /># Configure the database type<br /># allowed values are postgresql, sqlite, mysql<br />db_type = sqlite<br /><br /># Configure the path to store attachments and sqlite database<br />data_path = ./trytond<br /><br /># Enable auto-reload of modules if changed<br />auto_reload = True<br /><br />
    


    data_path里不能带有特殊符号,正常的符号最好也别带。

    好,可以用版本对应的客户端连接了。






    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrshelly
      wrote on last edited by
      #2

      Good, 关注....感谢.....

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Tags
      • Popular
      • Users
      • Groups