1. Ensure that you are not running as a root user. We recommend setting up a service account for the Mingle process.不许要超级用户权限。
2. Move the downloaded unix installer file into the directory where you want to install Mingle.直接放到需要安装的目的目录。
3. Unzip and untar, using 'tar -xzvf mingle_unix_X_X_XXXX.tar.gz' 解压之
4. Create 2 directories, one used as a data directory, the other as a config directory. The data directory is where Mingle writes attachments and other application data. The config directory is where Mingle stores its configuration files. Both these directories must be writable by the user that is going to be running the MingleServer process. 建立两个目录备用,比如:
mkdir -p /media/GoldenResources/DATA/MINGLE/data #存放数据
mkdir -p /media/GoldenResources/DATA/MINGLE/conf #存放配置文件
THESE DIRECTORIES SHOULD NOT BE THE SAME.
THESE DIRECTORIES SHOULD NOT BE WITHIN THE MINGLE INSTALLATION FOLDER.
5. Copy the mingle.properties.example file located in base install directory to the config directory, and rename it to mingle.properties. 复制配置文件,放到上面设置的配置文件存放目录
6. Edit the mingle.properties file in your config directory, to specify the port on which the server will run, as well as the mingle swap directory, which is the a space for Mingle to store transient data. The default location for the swap directory is a folder called tmp inside your data directory. e.g., if your data directory is /var/mingle,按照mingle.properties中的说明编辑相关的项目。
Example configuration:
-Dmingle.port=8033
-Dmingle.swapDir=/media/GoldenResources/DATA/MINGLE/data/tmp
7. Start the Mingle server by navigating to the Mingle installation directory, and run './MingleServer --mingle.dataDir=/path/to/data/dir --mingle.configDir=/path/to/config/dir start'.启动之,我的命令如下:
cd /media/GoldenResources/localSoft/mingle_3_3/;
./MingleServer --mingle.dataDir=/media/GoldenResources/DATA/MINGLE/data --mingle.configDir=/media/GoldenResources/DATA/MINGLE/conf start
Part 02 :参考网页设置要求,设置postgresql:
1、安装postgresql服务器
sudo apt-get install postgresql
2、Ubuntu 下需要修改配置文件权限!
直接启动服务错误如下:
2011-04-15 01:17:16 CST FATAL: private key file "server.key" has group or world access
2011-04-15 01:17:16 CST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".
---解决办法-可以直接su成root完成操作--
1) sudo cd /var/lib/postgresql/8.4/main/
2) sudo mv server.key server.key-0 #备份原来的连接
3) sudo cp /etc/ssl/private/ssl-cert-snakeoil.key server.key
4) sudo chown postgres server.key
5) sudo chgrp postgres server.key
6) sudo chmod 740 server.key
7) sudo /etc/init.d/postgres-8.4 start 或者: sudo service postgresql start
-------------ok---------------
3、建立用户和数据库mingle
su - postgres #只有postgres才有权限啊!
createdb mingle #建立数据库
createuser -P mingle #建立用户,并且指定密码
评论