Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build / setup steps for CentOS 7 #6

Open
rrjanbiah opened this issue Dec 29, 2020 · 0 comments
Open

Build / setup steps for CentOS 7 #6

rrjanbiah opened this issue Dec 29, 2020 · 0 comments

Comments

@rrjanbiah
Copy link

FWIW, for anyone looking to find build instruction. Below steps are tested in DigitalOcean CentOS 7 droplet.

# Prepare...
# Current directory...
[root@centos-s-1vcpu-1gb-nyc3-01 ~]# pwd
/root
# Check CentOS version...
[root@centos-s-1vcpu-1gb-nyc3-01 ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
# go to /opt/
[root@centos-s-1vcpu-1gb-nyc3-01 ~]# cd /opt/
# Download shove source from git...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# wget https://github.com/pennersr/shove/archive/master.zip
# Rename file...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# mv master.zip shove.zip
# Unzip...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# unzip shove.zip
# Check files and folder...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# ls
shove-master  shove.zip
# Rename folder...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# mv shove-master/ shove
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# ls
shove  shove.zip

# Install go...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# wget https://golang.org/dl/go1.15.6.linux-amd64.tar.gz
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# tar -C /usr/local -xzf go1.15.6.linux-amd64.tar.gz
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# export PATH=$PATH:/usr/local/go/bin
# Check go version...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# go version
go version go1.15.6 linux/amd64

# Install redis...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# yum install epel-release
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# yum install redis
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# systemctl start redis.service
# Check redis...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# redis-cli -h localhost ping
PONG

# Build shove...
[root@centos-s-1vcpu-1gb-nyc3-01 opt]# cd shove
[root@centos-s-1vcpu-1gb-nyc3-01 shove]# mkdir build
[root@centos-s-1vcpu-1gb-nyc3-01 shove]# go build -o build ./...
[root@centos-s-1vcpu-1gb-nyc3-01 shove]# cd build
[root@centos-s-1vcpu-1gb-nyc3-01 build]# chmod +x shove
[root@centos-s-1vcpu-1gb-nyc3-01 build]# mkdir -p /usr/local/shove/bin
[root@centos-s-1vcpu-1gb-nyc3-01 build]# mv shove /usr/local/shove/bin/

# Setup firewall and open port 8322; otherwise couldn't access through IP:8322
[root@centos-s-1vcpu-1gb-nyc3-01 build]# yum install firewalld
[root@centos-s-1vcpu-1gb-nyc3-01 build]# systemctl enable firewalld
[root@centos-s-1vcpu-1gb-nyc3-01 build]# reboot
[root@centos-s-1vcpu-1gb-nyc3-01 ~]# firewall-cmd --permanent --add-port=8322/tcp
success
[root@centos-s-1vcpu-1gb-nyc3-01 ~]# firewall-cmd --reload


# Now execute something like:
/usr/local/shove/bin/shove -api-addr x.x.x.x:8322 -fcm-api-key xxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant