Ubuntu下fossolgy安装步骤:
需先安装apache2(步骤略)
# vi /etc/apt/sources.list
deb http://fossology.org/release/2.6.2/Ubuntu/ 12.04 contrib
:wq
# apt-get update
# apt-get install fossolgy
会自动安装apache-php5及postgresql (记得修改postgres账号密码)
默认安装路径:
/etc/fossology、/usr/share/fossology、/usr/share/fossology/www/ui、/srv/fossology/repository(
该路径可通过/etc/fossology/fossology.conf调整)(log路径:/var/log/fossology/fossology.log)
# ln -s /usr/share/fossology/www/ui /var/www/html/repo
启动、停止、重启fossology
# service fossology start/stop/restart
访问:
http://ip/repo
默认用户名及密码均为:fossy
fossology初始化数据库路径:/usr/lib/fossology/fossologyinit.sql
如果意外账号出现问题可尝试删除fossology数据库重新导入,具体步骤:
# service fossology stop
# su postgres
$ dropdb fossology
$ psql < /usr/lib/fossology/fossologyinit.sql
$ exit
# /usr/lib/fossology/fossinit.php -c /etc/fossology
# service fossology start
转载于:https://blog.51cto.com/yangzhiming/1655052