g6uluhgauuzmo566s6pcsv6ks5bngh6dlpma73inerkst6cuimea
bvehzgafgabfhhumevmr4zfd5fuinkx7unsp24e3hnpo4tjswoxa
#install util
yum install -y mc mtr nano open-vm-tools screen wget nmap unzip yum-utils net-tools
yum -y install epel-release && yum repolist && yum install htop
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
sudo yum install git
download lstest agent
https://github.com/Microsoft/azure-pipelines-agent/releases
#comment part code in run script ./config.sh
#if [ $user_id -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then
# echo "Must not run with sudo"
# exit 1
#fi
wget https://vstsagentpackage.azureedge.net/agent/2.195.0/vsts-agent-linux-x64-2.195.0.tar.gz
wget https://vstsagentpackage.azureedge.net/agent/2.200.2/vsts-agent-linux-x64-2.200.2.tar.gz
#install agent
mkdir /etc/myagent && cd /etc/myagent
tar xzf /DATA/soft/vsts-agent-linux-x64-2.192.0.tar.gz
##configure
./config.sh
Enter server URL >
Enter authentication type (press enter for Negotiate) >
Enter personal access token >
Enter agent pool (press enter for default) >
Enter agent name (press enter for licpacesuite-vm) >
./bin/installdependencies.sh
##install
sudo ./svc.sh install
##sart
sudo ./svc.sh start
sudo ./svc.sh status
sudo ./svc.sh status
sudo ./svc.sh uninstall
add to after reboot
echo "@reboot /etc/myagent/svc.sh" >> crontad -e