【发布时间】:2018-09-02 15:01:23
【问题描述】:
当机器从 Beanstalk 部署时,我需要 ATOP 在 EC2 上安装实例。 AWS 支持只有下面的链接,但它没有显示如何在 ebextensions 配置文件中进行部署。有人已经这样做并且已经制作了配置文件吗?谢谢! --> https://www.tecmint.com/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes/ 顺便说一句,使用 Amazon Linux
{{编辑 3/23/18}}
到目前为止,我自己解决了这个问题,这就是我所拥有的。它没有完全工作,但仍在努力。
packages:
rpm:
epel: https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
container_commands:
1_rpm_atop:
command: "sudo /bin/rpm -i --replacepkgs
https://www.atoptool.nl/download/atop-2.3.0-1.el6.x86_64.rpm"
2_add_atop:
command: "/sbin/chkconfig --add atop"
leader_only: true
3_add_atop:
command: "/sbin/chkconfig atop on --level 235"
leader_only: true
4_config_atop:
command: "/bin/sed 's/600/60/' /usr/share/atop/atop.daily -i"
leader_only: true
5_link:
command: "/bin/ln -sfn /var/log/atop /var/app/current/wp-content/uploads/atop"
leader_only: true
6_start:
command: "/etc/init.d/atop start"
leader_only: true
【问题讨论】:
标签: amazon-ec2 amazon-elastic-beanstalk