How to do PostgreSQL replication on CentOS 7?
The archive_command setting doesn't fit the recovery.conf but the postgresql.conf file. 

The documentation you're following is deprecated.

Please switch to the official documentation.

Here are the steps you need to perform:


Primary node settings (postgresql.conf, pg_hba.conf)
Primary node backup (pg_basebackup, pgbarman, pgbackrest... Whatever)
Restoring on secondary node (manually, pgbarman, pgbackrest... Whatever)
Secondary node settings (recovery.conf, postgresql.conf, eventually pg_hba.conf)


The part you didn't do is simply the initial backup/restore. You can't do replication without it.