0%

How to manually start the services needed for Magento 2

I’m trying to dive in to Magento 2 while I’m working as a Project Manager in the company that managing mostly Magento 2 projects. After I successfully launched my first Magento 2 website on local machine (Yes, you didn’t hear me wrong. It’s on the local machine as I actually have nothing to sell), I found that I need this cheatsheet that makes my life easier:

Occasionally, I need to reboot my laptop. However, I often am in the situation that I need to find out what service is missing after my laptop rebooted.

So hereby I listed a few things and commands that I need to run after reboot.

How to manage Nginx

Nginx

sudo nginx -c /usr/local/etc/nginx/nginx.conf
sudo nginx -s reload

How to manage php-fpm

php-fpm (This is php-fpm, which not working since missing mcrypt)

sudo php-fpm -y /usr/local/etc/php/5.6/php-fpm.conf -c /usr/local/etc/php/5.6/php.ini

php56-fpm

sudo /usr/local/sbin/php56-fpm start -y /usr/local/etc/php/5.6/php-fpm.conf -c /usr/local/etc/php/5.6/php.ini

How to manage Mysql

Mysql

sudo chown -R mysql /usr/local/var/mysql
sudo chmod -R o+rwx /usr/local/var/mysql
mysql.server start

Enjoy reading? Some donations would motivate me to produce more quality content