免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2781 | 回复: 6
打印 上一主题 下一主题

Red Hat 无 root 帐户 配置 Python和 Django [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-15 20:41 |只看该作者 |倒序浏览
大家好,我是新人。
最近我想借用公司的服务器,在公司内部开发自己的网页,我想用Apache+Python+Django+Mysql搭配使用,但是IT部门肯定不会给我root权限的,而且也没有必要在全局安装这些东西。
我听说Python2.6开始可以在自己的账户下面进行安装site-packages等等,但是我不知道怎么做。就算可以,没有root权限,可以配置Django吗?

谢谢各位的意见。

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
2 [报告]
发表于 2011-12-16 13:27 |只看该作者
可以,你可以试试。

论坛徽章:
0
3 [报告]
发表于 2011-12-16 15:22 |只看该作者
想请问一下,如何做到的呢?

论坛徽章:
0
4 [报告]
发表于 2011-12-16 15:49 |只看该作者
  1. Specification

  2. site directory (site-packages)

  3. A directory in sys.path. In contrast to ordinary directories the pth files in the directory are processed, too.
  4. user site directory

  5. A site directory inside the users' home directory. A user site directory is specific to a Python version. The path contains the version number (major and minor only).

  6. Unix (including Mac OS X)
  7. ~/.local/lib/python2.6/site-packages
  8. Windows
  9. %APPDATA%/Python/Python26/site-packages
  10. user data directory

  11. Usually the parent directory of the user site directory. It's meant for Python version specific data like config files, docs, images and translations.

  12. Unix (including Mac)
  13. ~/.local/lib/python2.6
  14. Windows
  15. %APPDATA%/Python/Python26
  16. user base directory

  17. It's located inside the user's home directory. The user site and use config directory are inside the base directory. On some systems the directory may be shared with 3rd party apps.

  18. Unix (including Mac)
  19. ~/.local
  20. Windows
  21. %APPDATA%/Python
  22. user script directory

  23. A directory for binaries and scripts. [10] It's shared across Python versions and the destination directory for scripts.

  24. Unix (including Mac)
  25. ~/.local/bin
  26. Windows
  27. %APPDATA%/Python/Scripts
复制代码

论坛徽章:
0
5 [报告]
发表于 2011-12-16 16:16 |只看该作者
python,django都不需要root的,自己编译一个在自己目录,或者全局的python,用virtualenv或者把类包放在PYTHONPATH/sys.path里

apache也不用root的,不过非root绑不了1024以下端口,就是说80用不了

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
6 [报告]
发表于 2011-12-16 19:25 |只看该作者
直接安装到自己的目录下。

论坛徽章:
0
7 [报告]
发表于 2011-12-21 10:53 |只看该作者
py和Django不需要root的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP