建立一个简单的基于查询的集群系统,各位不妨玩玩~~

1 view
Skip to first unread message

jerrymy

unread,
Apr 7, 2009, 6:28:26 AM4/7/09
to Linux-鸟巢
按照下面的操作进行即可:代码我已经上传到文件里chief.tar.gz

这个集群支持8个节点,详细的信息可以查看代码。

按照下面的步骤执行make之后有个readme文件,里面有关于此集群的详细介绍!

如果想了解得更详细,查看文件里的相关书籍,本集群系统是基于论坛文件里的《linux cluster architecture》这本

书的。


The file named chief.tar.gz contains a complete set of files for a
newly created userid named chief. Add a new user named chief, set its
password, and extract all the files inside this tar file. Log out,
then back in again, and you should have all the source and other files
discussed in the book. You will also find a README.txt file in each
sub-directory, describing each of its files, and how to test then in
some cases.

* chief.tar.gz

Here are the details, assuming you have downloaded chief.tar.gz into
the /tmp directory. (It can be in a directory of your choosing, but
the example assumes it's in /tmp.)

As root,

* > adduser chief

It will remind you to set chief's password. Do it

* > passwd chief

It will ask you for a password, and then ask you to retype that same
password for confirmation.

Log out as root, and in as chief. From it's home directory, extract
all the files from the tar file:

* > tar zxvf /tmp/chief.tar.gz

Now log out as chief, and back in again as chief. (This is an easy way
to set up the new environment, etc., for this new user ID.)

You're done! Snoop around and check out the files in each
subdirectory. Typing "make" from any of the source subdirectories will
rebuild that set of programs. Typing "make" from your home directory
will rebuild everything.

In the bin subdirectory, you will find a few scripts that will help
you in testing, and a backchief that assumes you have a /backups
directory that chief can access.

Reply all
Reply to author
Forward
0 new messages