首先安装python, 和python相关工具:python-setuptools python-devl python-mysql,python-wsgi
python-setuptools 后面安装reviewboard需要用到easy_install工具,这里主要就是生成这个。“easy_install reviewboard”
python-mysql,用的是sql数据库。
python-wsgi。选的是wsgi应用框架
opensuse 在设置好软件安装源后,这些工具都可以直接安装。
然后安装apache2,并启动服务。并启动httpd服务:/etc/initd/apache2 start。当通过浏览器输入:http://127.1,出现it works界面时说明安装成功。
通常也可以用下面的命令启动apache服务。即httpd服务。
systemctl enable apache2.service
systemctl start apache2.servic
如果安装失败,检查下是不是firewall没有开启相应端口,用如下命令开启:
sysconf_addword /etc/sysconfig/SuSEfirewall2 FW_CONFIGURATIONS_EXT apache2
sysconf_addword /etc/sysconfig/SuSEfirewall2 FW_CONFIGURATIONS_EXT apache2-ssl
rcSuSEfirewall2 restart
同时安装lamp_server
zypper in -t pattern lamp_server
相关模块使能和禁止:
a2enmod php5
a2enmod wsgi
a2dismod perl
额,上面都是根据opensuse的参考文档进行的设置,没有细研过。记得每次更改设置后, /etc/init.d/apache2 restart重启下apache服务。