mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Added RPM packages to website
This commit is contained in:
parent
1e20c2bc27
commit
576878c205
@ -399,10 +399,10 @@
|
||||
|
||||
<p>System requirements: Linux, x86_64 with SSE 4.2.</p>
|
||||
|
||||
<p>Install packages for Ubuntu/Debian:</p>
|
||||
<p>Install packages for <span class="distributive_selected" id="repo_deb">Ubuntu/Debian</span>, <span class="distributive_not_selected" id="repo_rpm">RedHat/CentOS</span>:</p>
|
||||
|
||||
<code id="packages-install">
|
||||
<pre>
|
||||
<pre id="instruction_deb">
|
||||
sudo apt-get install dirmngr
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
|
||||
|
||||
@ -413,6 +413,14 @@ sudo apt-get install -y clickhouse-server clickhouse-client
|
||||
|
||||
sudo service clickhouse-server start
|
||||
clickhouse-client
|
||||
</pre>
|
||||
<pre id="instruction_rpm" style="display: none;">
|
||||
sudo yum install yum-utils
|
||||
sudo yum-config-manager --add-repo https://repo.yandex.ru/clickhouse/rpm/stable/x86_64
|
||||
sudo yum install clickhouse-server clickhouse-client
|
||||
|
||||
sudo /etc/init.d/clickhouse-server start
|
||||
clickhouse-client
|
||||
</pre>
|
||||
</code>
|
||||
|
||||
@ -483,7 +491,7 @@ clickhouse-client
|
||||
target="_blank"
|
||||
><div id="github">Fork me on GitHub</div></a>
|
||||
|
||||
<script type="text/javascript" src="//yastatic.net/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://yastatic.net/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var name = $('#main-title').text().trim().toLowerCase();
|
||||
@ -510,6 +518,30 @@ clickhouse-client
|
||||
if (hostParts.length > 2 && hostParts[0] != 'test') {
|
||||
window.location.host = hostParts[0] + '.' + hostParts[1];
|
||||
}
|
||||
|
||||
var available_distributives = ['deb', 'rpm'];
|
||||
var selected_distributive = 'deb';
|
||||
|
||||
function refresh_distributives() {
|
||||
available_distributives.forEach(function (name) {
|
||||
if (name == selected_distributive) {
|
||||
$('#repo_' + name).attr("class", "distributive_selected");
|
||||
$('#instruction_' + name).show();
|
||||
} else {
|
||||
$('#repo_' + name).attr("class", "distributive_not_selected");
|
||||
$('#instruction_' + name).hide();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
refresh_distributives();
|
||||
|
||||
available_distributives.forEach(function (name) {
|
||||
$('#repo_' + name).on('click', function () {
|
||||
selected_distributive = name;
|
||||
refresh_distributives();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user