title: While running PHP bin/magento deploy:mode:set production I am getting error on magento 2.1
body: <p>I am using php7 with nginx </p>
  
  <p>Something went wrong while compiling generated code. See the error log for details.</p>
  
  <blockquote>
    <p>Command returned non-zero exit code:
    <code>/usr/bin/php7.0 -f /var/www/magento2/bin/magento setup:di:compile</code></p>
  </blockquote>