当我在 ec2 机器 sudo /etc/init.d/aerospike start 中执行以下命令时出现错误
我需要在我的 ec2 机器中使用 aerospike 引擎来进行测试。我使用 wget -O aerospike.tgz ' http://aerospike.com/download/server/latest/artifact/ubuntu12来获取文件并按照文档所述进行安装。
当我在 ec2 机器 sudo /etc/init.d/aerospike start 中执行以下命令时出现错误
我需要在我的 ec2 机器中使用 aerospike 引擎来进行测试。我使用 wget -O aerospike.tgz ' http://aerospike.com/download/server/latest/artifact/ubuntu12来获取文件并按照文档所述进行安装。
刚好看到这个问题。你解决了吗?您是否安装了正确版本的 GLibC?
如果不是,看起来您使用的是 3.5.3 社区版本,对吗?
我在 Ubuntu 14.4 M3 large 上的 AWS 上进行了测试,它安装并开始正常:
ubuntu@ip-172-31-23-5:~$ wget -O aerospike.tgz 'http://aerospike.com/download/server/latest/artifact/ubuntu12
> ^C
ubuntu@ip-172-31-23-5:~$ wget -O aerospike.tgz 'http://aerospike.com/download/server/latest/artifact/ubuntu12'
--2015-03-09 21:29:58-- http://aerospike.com/download/server/latest/artifact/ubuntu12
Resolving aerospike.com (aerospike.com)... 184.168.221.29
Connecting to aerospike.com (aerospike.com)|184.168.221.29|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: /download/server/latest/artifact/ubuntu12 [following]
--2015-03-09 21:29:59-- http://aerospike.com/download/server/latest/artifact/ubuntu12
Connecting to aerospike.com (aerospike.com)|184.168.221.29|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: /download/server/latest/artifact/ubuntu12 [following]
--2015-03-09 21:29:59-- http://aerospike.com/download/server/latest/artifact/ubuntu12
Connecting to aerospike.com (aerospike.com)|184.168.221.29|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.aerospike.com/download/server/latest/artifact/ubuntu12[following]
--2015-03-09 21:29:59-- http://www.aerospike.com/download/server/latest/artifact/ubuntu12
Resolving www.aerospike.com (www.aerospike.com)... 54.215.231.2, 54.183.249.41
Connecting to www.aerospike.com (www.aerospike.com)|54.215.231.2|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.aerospike.com/cgi/latest.php?/download/server/latest/artifact/ubuntu12 [following]
--2015-03-09 21:29:59-- http://www.aerospike.com/cgi/latest.php?/download/server/latest/artifact/ubuntu12
Reusing existing connection to www.aerospike.com:80.
HTTP request sent, awaiting response... 302 Found
Location: /download/server/3.5.3/artifact/ubuntu12 [following]
--2015-03-09 21:29:59-- http://www.aerospike.com/download/server/3.5.3/artifact/ubuntu12
Reusing existing connection to www.aerospike.com:80.
HTTP request sent, awaiting response... 302 Found
Location: http://www.aerospike.com/cgi/artifact.php?/download/server/3.5.3/artifact/ubuntu12 [following]
--2015-03-09 21:29:59-- http://www.aerospike.com/cgi/artifact.php?/download/server/3.5.3/artifact/ubuntu12
Reusing existing connection to www.aerospike.com:80.
HTTP request sent, awaiting response... 302 Found
Location: http://www.aerospike.com/artifacts/aerospike-server-community/3.5.3/aerospike-server-community-3.5.3... [following]
--2015-03-09 21:29:59-- http://www.aerospike.com/artifacts/aerospike-server-community/3.5.3/aerospike-server-community-3.5.3...
Reusing existing connection to www.aerospike.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 10518026 (10M) [application/x-gzip]
Saving to: ‘aerospike.tgz’
100%[=========================================================================================================================================================================================>] 10,518,026 17.6MB/s in 0.6s
2015-03-09 21:30:00 (17.6 MB/s) - ‘aerospike.tgz’ saved [10518026/10518026]
ubuntu@ip-172-31-23-5:~$ ls -ltrh
total 11M
-rw-rw-r-- 1 ubuntu ubuntu 11M Mar 3 23:57 aerospike.tgz
ubuntu@ip-172-31-23-5:~$ tar xvf aerospike.tgz
aerospike-server-community-3.5.3-ubuntu12.04/
aerospike-server-community-3.5.3-ubuntu12.04/asinstall
aerospike-server-community-3.5.3-ubuntu12.04/aerospike-server-community-3.5.3.ubuntu12.04.x86_64.deb
aerospike-server-community-3.5.3-ubuntu12.04/aerospike-tools-3.5.2.ubuntu12.04.x86_64.deb
aerospike-server-community-3.5.3-ubuntu12.04/LICENSE
aerospike-server-community-3.5.3-ubuntu12.04/SHA256SUMS
ubuntu@ip-172-31-23-5:~$ cd aerospike-server-community-3.5.3-ubuntu12.04/
ubuntu@ip-172-31-23-5:~/aerospike-server-community-3.5.3-ubuntu12.04$ ls -ltrh
total 11M
-rw-rw-r-- 1 ubuntu ubuntu 8.1K Dec 5 20:24 LICENSE
-rwxrwxr-x 1 ubuntu ubuntu 1.1K Dec 5 20:24 asinstall
-rw-r--r-- 1 ubuntu ubuntu 3.7M Feb 23 23:38 aerospike-tools-3.5.2.ubuntu12.04.x86_64.deb
-rw-rw-r-- 1 ubuntu ubuntu 563 Feb 23 23:43 SHA256SUMS
-rw-r--r-- 1 ubuntu ubuntu 6.6M Feb 23 23:43 aerospike-server-community-3.5.3.ubuntu12.04.x86_64.deb
ubuntu@ip-172-31-23-5:~/aerospike-server-community-3.5.3-ubuntu12.04$ sudo ./asinstall
Installing tools
dpkg -i aerospike-tools-3.5.2.ubuntu12.04.x86_64.deb
Selecting previously unselected package aerospike-tools.
(Reading database ... 51108 files and directories currently installed.)
Preparing to unpack aerospike-tools-3.5.2.ubuntu12.04.x86_64.deb ...
Unpacking aerospike-tools (3.5.2) ...
Setting up aerospike-tools (3.5.2) ...
Installing /opt/aerospike
Writing /usr/local/lib/python2.7/dist-packages/aerospike.pth
Adding python path /opt/aerospike/lib/python
Installing server
dpkg -i aerospike-server-community-3.5.3.ubuntu12.04.x86_64.deb
Selecting previously unselected package aerospike-server-community.
(Reading database ... 51160 files and directories currently installed.)
Preparing to unpack aerospike-server-community-3.5.3.ubuntu12.04.x86_64.deb ...
Unpacking aerospike-server-community (3.5.3-1) ...
Setting up aerospike-server-community (3.5.3-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ubuntu@ip-172-31-23-5:~/aerospike-server-community-3.5.3-ubuntu12.04$ sudo /etc/init.d/aerospike start
* Start aerospike: asd kernel.shmall too low, setting to 4G pages = 16TB
kernel.shmall = 4294967296
kernel.shmmax too low, setting to 1GB
kernel.shmmax = 1073741824
[ OK ]
ubuntu@ip-172-31-23-5:~/aerospike-server-community-3.5.3-ubuntu12.04$ sudo /etc/init.d/aerospike status
* asd is running
ubuntu@ip-172-31-23-5:~/aerospike-server-community-3.5.3-ubuntu12.04$
让我们知道问题是否仍然存在。
希望这可以帮助,
-DM
如果它是旧版本,您可能还需要安装最新的 glibc。
sudo apt-get update
sudo apt-get install libc6