绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
aerospike非root用户安装
2022-06-21 15:45:57

创建非root用户 创建组

  1. groupadd was
  2. mkdir /home/was
  3. useradd -d /home/was -g was -s /bin/bash was
  4. chown -R was /home/was
  5. passwd was

下载as:

  1. cd /home/was
  2. 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

  1. cd /home/was
  2. tar xvf aerospike-server-community-3.5.9.tar.gz
  3. cd aerospike-server

初始化AS

./bin/aerospike init

注意:as默认用户名组名相同来初始化,创建相关目录
aerospike init 就是创建各种目录的过程,讲share目录的标准文件 拷贝的aerospike.conf定义好的各个目录

  1. was@suse11:~/aerospike-server> ./bin/aerospike init
  2. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server
  3. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/etc
  4. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share
  5. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var
  6. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/bin
  7. error: install -m 755 -o was -g was -C /home/was/aerospike-server/share/bin/aerospike /home/was/aerospike-server/share/bin/aerospike
  8. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/lib
  9. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/lib/* /home/was/aerospike-server/share/lib/.
  10. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/libexec
  11. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/libexec/* /home/was/aerospike-server/share/libexec/.
  12. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/man
  13. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-init.man /home/was/aerospike-server/share/man/.
  14. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-destroy.man /home/was/aerospike-server/share/man/.
  15. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-restart.man /home/was/aerospike-server/share/man/.
  16. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-start.man /home/was/aerospike-server/share/man/.
  17. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-status.man /home/was/aerospike-server/share/man/.
  18. error: install -m 644 -o was -g was -C /home/was/aerospike-server/share/man/aerospike-stop.man /home/was/aerospike-server/share/man/.
  19. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/etc
  20. 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
  21. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua
  22. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua/external
  23. 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/.
  24. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/share/udf/lua/ldt
  25. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/bin
  26. error: install -m 755 -o was -g was -C /home/was/aerospike-server/bin/asd /home/was/aerospike-server/bin/asd
  27. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/log
  28. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/run
  29. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/smd
  30. error: install -m 755 -o was -g was -Dd /home/was/aerospike-server/var/udf/lua

as目录

  1. bin etc share var
  2. ./bin/aerospike -管理脚本
  3. ./bin/asd -asd服务
  4. ./etc/aerospike.conf -实例的配置文件
  5. ./share/ -包含一些实例的只读文件
  6. ./var/ -asd产生的一些日志和数据

启动as

./bin/asd --instance 1 --config /home/was/aerospike-server/etc/aerospike.conf  

检查

  1. was@suse11:~/aerospike-server> ps -ef|grep asd
  2. was 5158 1 3 10:07 ? 00:00:45 ./asd --instance 1 --config /home/was/aerospike-server/etc/aerospike.conf
  3. was 5375 5055 0 10:31 pts/0 00:00:00 grep asd
  4. was@suse11:~/aerospike-server>

转载于:https://my.oschina.net/u/2007391/blog/801922

分享好友

分享这个小栈给你的朋友们,一起进步吧。

Aerospike
创建时间:2022-04-14 10:06:31
Aerospike
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

技术专家

查看更多
  • LCR_
    专家
戳我,来吐槽~