您的位置:首页 > 理论基础 > 计算机网络

disco在ubuntu上的安装(原创)

2009-05-08 13:13 267 查看
disco在ubuntu上的安装

首先转换成超级用户root进行安装 sudo -s

opt安装

tar -zxvf opt_src....
cd otp_src...
./configure
make
make install
lightTPD安装

 # apt-get install lighttpd
注意:在用disco的配置文件启动lighttpd时,当前用户的UID和GID都不能为0,否则报错!无法启动LIGHTTPD!!

python2.5的安装

tar -zxvf Python-2.5.4.tgz
./configure
make
make install
python2.5的安装 官网说明
Unpack the archive with tar -zxvf Python-2.5.4.tgz (or bzcat Python-2.5.4.tar.bz2 | tar -xf -). Change to the Python- 2.5.4 directory and run the "./configure", make", "make install" commands to compile and install Python. The source archive is also suitable for Windows users who feel the need to build their own version

setuptools-0.6c9-py2.5.egg安装

sh setuptools-0.6c9-py2.5.egg
注意:如果用apt-get install 安装的话,在安装disco是会出现python 导入steuptools出错

setuptools-0.6c9-py2.5.egg安装 官网说明
Download the appropriate egg for your version of Python (e.g. setuptools-0.6c9-py2.5.egg). Do NOT rename it. Run it as if it were a shell script, e.g. sh setuptools-0.6c9-py2.5.egg. Setuptools will install itself using the matching version of Python (e.g. python2.5), and will place the easy_install executable in the default location for installing Python scripts (as determined by the standard distutils configuration files, or by the Python installation).

python-cjson 1.0.5安装

tar xzf *.tar.gz
python setup.py install
DISCO安装
接下来就可以安装disco了,根据官网来就可以了
如果在一台机子上模拟则要把/etc/disco/disco.conf中的master端口打开
建立下面的目录,并改变权限使disco用户可读写

*DISCO_ROOT=/srv/disco/
DISCO_HOME=/usr/lib/disco/(安装时已自动建好,更改一下权限)
*DISCO_LOG=/var/log/disco/
*DISCO_PID_DIR=/var/run/disco/
在用SSH时先把~/.ssh下的文件权限改为700
之后,根据官网上的步骤用SSH LOCALHOST无密码登入后 运行count_words.py就可以了!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息