Oltpbenchmark:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→首段) |
(→安裝) |
||
第3行: | 第3行: | ||
== 安裝 == | == 安裝 == | ||
先下載: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt install -y ant default-jdk openjdk-8-jdk git locales | sudo apt install -y ant default-jdk openjdk-8-jdk git locales | ||
cd ~ | cd ~ | ||
git clone https://github.com/oltpbenchmark/oltpbench.git | git clone https://github.com/oltpbenchmark/oltpbench.git | ||
</syntaxhighlight> | |||
編譯: | |||
<syntaxhighlight lang="bash"> | |||
cd ~/oltpbench | |||
ant clean | |||
ant | |||
</syntaxhighlight> | |||
== 設定 == | |||
<syntaxhighlight lang="bash"> | |||
cd ~/oltpbench | |||
cp config/tpcc_config_postgres.xml config/tpcc.xml | |||
vim config/tpcc.xml | |||
# Change "DBUrl", "username", and "password". | |||
</syntaxhighlight> | </syntaxhighlight> | ||
2018年12月31日 (一) 04:52的版本
oltpbenchmark是一套Java写的资料库测试程式。
安装
先下载:
sudo apt install -y ant default-jdk openjdk-8-jdk git locales
cd ~
git clone https://github.com/oltpbenchmark/oltpbench.git
编译:
cd ~/oltpbench
ant clean
ant
设定
cd ~/oltpbench
cp config/tpcc_config_postgres.xml config/tpcc.xml
vim config/tpcc.xml
# Change "DBUrl", "username", and "password".