|
发表于 2007-3-7 13:58:43
|
显示全部楼层
翻译: 原文:http://boinc.berkeley.edu/make_project.php
原文:http://boinc.berkeley.edu/make_project.php
[english version] last modified at 2007-03-07 13:57
The make_project script
MAKE_PROJECT 脚本
--------------------------------------------------------------------------------
The make_project script creates the server components of a BOINC project. To use it, set up a BOINC server. Then, for example, type:
MAKE_PROJECT脚本用来建立BOINC项目的服务器组件。用它来建立BOINC服务器。例如,输入:
cd tools/
./make_project cplan
creates a project with master URL http://<hostname>/cplan/ whose directory structure is rooted at $HOME/projects/cplan.
建立实际目录在$HOME/projects/cplan,主地址在URL http://<hostname>/cplan/的项目。
More specifically, make_project does the following:
Create the project directory and its subdirectories.
Create the project's encryption keys if necessary. NOTE: before making the project visible to the public, you must move the code-signing private key to a highly secure (preferably non-networked) host, and delete it from the server host.
Create and initialize the MySQL database
Copy source and executable files
Generate the project's configuration file.
具体说明如下:
建立项目目录和子目录。
如果需要,建立项目的加密密钥。注意:在项目被发布之前,你需要将"代码签字私有密钥"存放到高度安全(最好没有网络连接)的主机上,并且从服务器主机上删除。
建立并初始化MYSQL数据库。
考备源文件和可执行文件。
产生项目配置文件。
The script gives further instructions, namely
It generates a template Apache config file that you can insert into /etc/apache/httpd.conf (path varies), or Include directly.
It generates a crontab line to paste.
The command-line syntax is as follows:
make_project [options] project_name [ 'Project Long Name ' ]
此脚本给出了进一步用法说明,换句话说
它产生了直接可以放到/etc/apache/httpd.conf(path varies)中的Apache配置文件,或者直接包含。
命令行语法如下所示:
make_project [options] project_name [ 'Project Long Name ' ]
Options are as follows (normally you don't need to include any of them):
directory options
--project_root Project root directory path. Default: $HOME/projects/PROJECT_NAME
--key_dir Where keys are stored. Default: PROJECT_ROOT/keys
--url_base Determines master URL Default: http://$NODENAME/
--no_query Accept all directories without yes/no query
--delete_prev_inst Delete project-root first (from prev installation)
URL options
--html_user_url User URL. Default: URL_BASE/PROJECT/
--html_ops_url Admin URL. Default: URL_BASE/PROJECT_ops/
--cgi_url CGI URL. Default: URL_BASE/PROJECT_cgi/
database options
--db_host Database host. Default: none (this host)
--db_name Database name. Default: PROJECT
--db_user Database user. Default: current user
--db_passwd Database password. Default: None
--drop_db_first Drop database first (from prev installation)
debugging options
--verbose={0,1,2} default: 1
-v alias for --verbose=2
-h or --help Show options
参数据选项如下(通常不需要包含任何参数):
目录参数
--project_root 指定项目根目录。 缺省为: $HOME/projects/PROJECT_NAME
--key_dir 密钥存储路径。缺省为:PROJECT_ROOT/keys
--url_base 指定主URL地址 缺省为:http://$NODENAME/
--no_query 不提示 yes/no 询问
--delete_prev_inst 首先清空项目根目录(从前一次安装)
URL参数
--html_user_url 用户URL。 缺省为:URL_BASE/PROJECT/
--html_ops_url 管理员URL。缺省为:URL_BASE/PROJECT_ops/
--cgi_url CGI URL. 缺省为:URL_BASE/PROJECT_cgi/
数据库参数
--db_host 数据库主机。缺省为:当前主机
--db_name 数据库名称。缺省为:项目名称
--db_user 数据库用户。缺省为:当前用户
--db_passwd Database password. Default: None
--drop_db_first 首先删除数据库(从前一次安装)
调试参数
--verbose={0,1,2} 缺省为:1
-v 参数--verbose=2别名
-h或--help 显示参数 |
评分
-
查看全部评分
|