重新配置了一个基于ubuntu1204虚拟机的Openerp和prestashop的开发环境
1.Ubuntu12.04 LTS version with Gnome-Shell
可以在登录的时候选择是Gnome还是Ubuntu典型界面
username: user1
password: xxxxxx
OR
username: root
password: xxxxxx
2.DB:postgresql9.3
data_directory:
/var/lib/postgresql/9.3/main
config_file:
/etc/postgresql/9.3/main/postgresql.conf
hba_file:
/etc/postgresql/9.3/main/pg_hba.conf
ident_file:
/etc/postgresql/9.3/main/pg_ident.conf
username: postgres
password: xxxxxx
命令行访问方式:/usr/bin/psql
图形界面方式:/usr/bin/pgAdmin3
Linux下面启动postgresql: sudo service
postgresql restart
3.Java(1.7.0_45)
/usr/lib/jvm/jdk1.7.0_45
4.Python(v2.7.3)
/usr/bin/python
5.openerp v7.0
目录/home/user1/workspace/openerp7
连接postgresql用户:user1(默认当前登录用户)
安装时需要注意的几点:
sudo apt-get install python-dateutil
python-feedparser python-gdata python-ldap
python-libxslt1
python-lxml python-mako python-openid python-psycopg2
python-pybabel
python-pychart python-pydot python-pyparsing python-reportlab
python-simplejson
python-tz python-vatnumber python-vobject python-webdav
python-werkzeug
python-xlwt python-yaml python-zsi
python-mock python-docutils python-unittest2
最后一行是在openerp官方网站的说明中没有的
=============================================================================================================
截至这里都是在Eclipse中开发,Python+Pydev,针对openerp
下面是在netbeans中开发,PHP,针对prestashop
=============================================================================================================
6.XAMPP
安装目录:/opt/lampp
WEB应用所在目录:/opt/lampp/htdocs
命令:sudo ./lampp 参数(参数列表如下)
|————————————————————————————————-
| start 启动 XAMPP。
| stop
停止 XAMPP。
| restart 重新启动 XAMPP。
| startapache 只启动 Apache。
| startssl 启动 Apache 的 SSL 支持。该命令将持续激活 SSL
支持,例如:执行该命令后,如果您关闭并重新启动 XAMPP,SSL 仍将处于激活状态。
| startmysql 只启动 MySQL 数据库。
| startftp 启动 ProFTPD 服务器。通过
FTP,您可以上传文件到您的网络服务器中(用户名“nobody”,密码“lampp”)。
|
该命令将持续激活 ProFTPD,例如:执行该命令后,如果您关闭并重新启动 XAMPP,FTP
仍将处于激活状态。
| stopapache 停止 Apache。
| stopssl 停止 Apache 的 SSL 支持。该命令将持续停止 SSL
支持,例如:执行该命令后,如果您关闭并重新启动 XAMPP,SSL 仍将处于停止状态。
| stopmysql 停止 MySQL 数据库。
| stopftp 停止 ProFTPD 服务器。该命令将持续停止
ProFTPD,例如:执行该命令后,如果您关闭并重新启动 XAMPP,FTP 仍将处于停止状态。
| security 启动一个小型安全检查程序。
|————————————————————————————————-
访问网址:http://localhost/
username: xampp
password: xxxxxx
ysql数据库:
username: user1
password: xxxxxx
命令行访问方式:/opt/lampp/bin/mysql
图形界面方式:/opt/lampp/phpmyadmin(应用,通过http访问)
*修改Mysql的用户及密码后需要在/opt/lampp/phpmyadmin/config.inc.php中修改用户和密码
7.Prestashop(PHP开源电商,Mysql)
源代码位置:/home/user1/NetbeansProjects/prestashop
未安装,请自行配置,配置完毕之后删除
prestashop/install目录