Build POSQ coin masternode daemon from source on Centos 7

Spread the love

POSQ coin masternode
Build latest version from source on Centos 7

First of all you have to  update your centos system and install dependencies for centos 7 .You can find it at below link

How to install dependencies for setup masternode on Centos 7

Don’t start here without doing ” install dependencies for centos 7 ” step.If you did it before you can skip it. Lets Begin .

Download, Build and Install POSQ daemon from source

Connect to your centos 7 system with putty or any other terminal screen and login. Write or copy/paste below commands to run on your terminal .

cd /usr/src

sudo git clone https://github.com/Poseidon-POSQ/POSQ.git

cd POSQ

sudo chmod +x share/genbuild.sh

sudo chmod +x autogen.sh

chmod +x configure.ac

chmod +x configure

sudo chmod 755 src/leveldb/build_detect_platform

./autogen.sh

./configure --prefix=/opt/posq PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath,/opt/openssl/lib --disable-tests --disable-bench

make

make install

After make install finished , your builded daemon files will be copied to /opt/posq/bin/  directory. You can see the files with commands below;

cd /opt/posq/bin/

ls

If you dont want to use ” make install ” , you can find builded daemon files on this path;

/usr/src/POSQ/src/posqd
/usr/src/POSQ/src/posq-cli
/usr/src/POSQ/src/posq-tx

Copy your daemon files before cleanout your system !!!!!

Clean out unrequired files from system

We builded and installed posq masternode daemon to our centos 7 system. Now we can delete unrequired files from system, you don’t need them anymore. These are the cleaning commands;

cd /usr/src/

rm -rfd POSQ

Open required port on firewall

Commands below are for open required port on firewall for communication. If you don’t open the port, your wallet doesn’t sync and doesn’t work !!!

firewall-cmd --zone=public --add-port=5510/tcp --permanent

firewall-cmd --reload

First run

When you first run your posqd daemon it asks you to add rpcname and rpcpassword to posqd.conf file.
First run the daemon and get the error. This creates required files on your user directory.And then run the commands below. Don’t forget to change rpcusername and password after = sign with your own !!! Here are the commands for it;

echo "rpcuser=change-this-username" >> ~/.posq/posq.conf

echo "rpcpassword=change-this-password" >> ~/.posq/posq.conf

Most used daemon commands:

./posqd -daemon   // starts the masternode daemon
./posq-cli stop   // stops the masternode daemon
./posq-cli getinfo   // get general info
./posq-cli getblockcounts  // shows last block number
./posq-cli masternode status   // shows masternode status
./posq-cli mnsync status   // shows maternode syncronisation  status

Leave a comment

Your email address will not be published.

Solve : *
6 − 4 =