创建非root用户 创建组
- groupadd was
- mkdir /home/was
- useradd -d /home/was -g was -s /bin/bash was
- chown -R was /home/was
- passwd was
下载as:
- cd /home/was
- wget http://www.aerospike.com/artifacts/aerospike-server-community/3.5.9/aerospike-server-community-3.5.9.tar.gz
安装as 解压as:aerospike-server-community-3.5.9.tar.gz
- cd /home/was
- tar xvf aerospike-server-community-3.5.9.tar.gz
- cd aerospike-server
初始化AS
./bin/aerospike init
注意:as默认用户名组名相同来初始化,创建相关目录
aerospike init 就是创建各种目录的过程,讲share目录的标准文件 拷贝的aerospike.conf定义好的各个目录
- was@suse11:~/aerospike-server> ./bin/aerospike init
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/etc
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/bin
- error: install -m 755 -o was -g was -C /home/was/aerospike-server/share/bin/aerospike /home/was/aerospike-server/share/bin/aerospike
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/lib
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/lib/* /home/was/aerospike-server/share/lib/.
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/libexec
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/libexec/* /home/was/aerospike-server/share/libexec/.
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/man
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-init.man /home/was/aerospike-server/share/man/.
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-destroy.man /home/was/aerospike-server/share/man/.
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-restart.man /home/was/aerospike-server/share/man/.
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-start.man /home/was/aerospike-server/share/man/.
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-status.man /home/was/aerospike-server/share/man/.
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-stop.man /home/was/aerospike-server/share/man/.
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/etc
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/etc/aerospike.conf /home/was/aerospike-server/share/etc/aerospike.conf
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua/external
- error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/udf/lua/external/*.lua /home/was/aerospike-server/share/udf/lua/external/.
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua/ldt
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/bin
- error: install -m 755 -o was -g was -C /home/was/aerospike-server/bin/asd /home/was/aerospike-server/bin/asd
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/log
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/run
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/smd
- error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/udf/lua
-
as目录
- bin etc share var
- ./bin/aerospike -管理脚本
- ./bin/asd -asd服务
- ./etc/aerospike.conf -实例的配置文件
- ./share/ -包含一些实例的只读文件
- ./var/ -asd产生的一些日志和数据
启动as
./bin/asd --instance 1 --config /home/was/aerospike-server/etc/aerospike.conf
检查
- was@suse11:~/aerospike-server> ps -ef|grep asd
- was 5158 1 3 10:07 ? 00:00:45 ./asd --instance 1 --config /home/was/aerospike-server/etc/aerospike.conf
- was 5375 5055 0 10:31 pts/0 00:00:00 grep asd
- was@suse11:~/aerospike-server>