-
-
Save nethershaw/86553cf01fbcac6cf2091c4cdc535b79 to your computer and use it in GitHub Desktop.
Install Performance Co-Pilot on Amazon Linux AMI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "Sorry, you are not root." | |
| exit 1 | |
| fi | |
| if !(type pcp 2>/dev/null;) then | |
| yum -y install git bison flex gcc-c++ perl-Tk-devel libmicrohttpd-devel | |
| git clone https://github.com/performancecopilot/pcp.git | |
| yum-builddep -y pcp | |
| cd pcp | |
| ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi | |
| make | |
| groupadd -r pcp | |
| useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp | |
| make install | |
| ldconfig -v | |
| fi | |
| service pmcd restart | |
| service pmwebd restart | |
| /sbin/chkconfig pmlogger on | |
| service pmlogger restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment