This question already has an answer here:
I am trying to set Magento 2 website in production mode. However unable to set. It gives me below error.
Command returned non-zero exit code: /opt/plesk/php/7.0/bin/php -f /var/www/vhosts/sitename/httpdocs/bin/magento setup:static-content:deploy en_GB en_US
server's memory_limit is set to 2G. Magento version is 2.1.
Anybody could say what's wrong here while setting store in production mode?