Percona Server:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→安裝) |
(→安裝) |
||
第4行: | 第4行: | ||
[[MySQL]]系的資料庫在使用[[jemalloc]]時效能都會提昇不少,所以在不少衍生版本都有支援jemalloc。其中Percona Server在偵測到系統內有jemalloc時會自動啟用<ref>{{Cite web |url=https://www.percona.com/blog/2017/01/03/enabling-and-disabling-jemalloc-on-percona-server/ |title=Enabling and Disabling Jemalloc on Percona Server |accessdate=2018-04-23 |date=2017-01-03}}</ref>,減少了設定所需的手續。 | [[MySQL]]系的資料庫在使用[[jemalloc]]時效能都會提昇不少,所以在不少衍生版本都有支援jemalloc。其中Percona Server在偵測到系統內有jemalloc時會自動啟用<ref>{{Cite web |url=https://www.percona.com/blog/2017/01/03/enabling-and-disabling-jemalloc-on-percona-server/ |title=Enabling and Disabling Jemalloc on Percona Server |accessdate=2018-04-23 |date=2017-01-03}}</ref>,減少了設定所需的手續。 | ||
安裝<code>libjemalloc1</code>: | 在[[Ubuntu]]上可以 安裝<code>libjemalloc1</code>: | ||
<syntaxhighlight lang="shell-session"> | <syntaxhighlight lang="shell-session"> | ||
$ sudo apt install libjemalloc1 | $ sudo apt install libjemalloc1 | ||
</syntaxhighlight> | |||
首先安裝[[Percona]]的APT設定,以及對應所需的Key: | |||
<syntaxhighlight lang="shell-session"> | |||
$ cd /tmp | |||
$ wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb | |||
$ sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb | |||
</syntaxhighlight> | |||
裝完後可以更新系統並且安裝Percona Server 5.7: | |||
<syntaxhighlight lang="shell-session"> | |||
$ sudo apt update | |||
$ sudo apt install percona-server-server-5.7 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
2018年4月23日 (一) 03:58的版本
Percona Server是一套数据库软件,源自MySQL。
安装
MySQL系的数据库在使用jemalloc时效能都会提升不少,所以在不少衍生版本都有支援jemalloc。其中Percona Server在侦测到系统内有jemalloc时会自动启用[1],减少了设定所需的手续。
在Ubuntu上可以安装libjemalloc1
:
$ sudo apt install libjemalloc1
首先安装Percona的APT设定,以及对应所需的Key:
$ cd /tmp
$ wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
$ sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
装完后可以更新系统并且安装Percona Server 5.7:
$ sudo apt update
$ sudo apt install percona-server-server-5.7
参考资料
- ↑ Enabling and Disabling Jemalloc on Percona Server. 2017-01-03 [2018-04-23].
外部链接
- 官方网站 (英文)