Auto Installer Print

  • amp, centos, autoinstaller, autoprovisioning
  • 0

hey all

here are some commands to get AMP installed with out to mutch user interaction

trow it in a script and let it execute , it contains a few bypass ways to get this installed with to mutch interaction

so lets start with the basic stuff

in our case we do not use SUDO, if you use SUDO then please add sudo in front of every command

Advanced Install

Log in as your main admin user and perform the following steps in order:

Create a new user to run AMP as

 This is not an optional step. AMP will refuse to start if you try and run it as root or as a user that has root permissions.

useradd -d /home/amp -m amp -s /bin/bash -G tty
#bypassing Passwd user input request
echo -e "linuxpassword\nlinuxpassword" | passwd amp

Add the CubeCoders repository to your system

yum install -y wget
wget -P /etc/yum.repos.d https://repo.cubecoders.com/CubeCoders.repo
yum -y check-update

Install prerequisites

yum install -y tmux socat unzip git curl tar glibc.i686 libstdc++.i686 ncurses-libs.i686 java

Add firewall rules for AMP

firewall-cmd --add-port=8080/tcp --permanent
firewall-cmd --reload

Installing AMP

yum install -y ampinstmgr

make AMP automatically start on boot

systemctl enable ampinstmgr.service

Login as the AMP user and create a management instance

su -l amp
ampinstmgr quickstart server login
#ampinstmgr quickstart USERNAME PASSWORD
 

Updating AMP

Updating the instance manager

Updates for the instance manager are performed via your package manager

yum -y update

Updating the AMP instances

Login as the AMP user or switch over to it using

su -l amp

ampinstmgr upgradeall

 

Was dit antwoord nuttig?

« Terug