Difference between revisions of "Omen dev"
From Wiki2
Line 36: | Line 36: | ||
sudo service php7.0-fpm start | sudo service php7.0-fpm start | ||
===MySQL=== | ===MySQL=== | ||
mysqldump - | mysqldump -uroot -pthepass --opt geniot > geniot.sql | ||
sftp root@sitebuilt.net:/root/*.sql /data/MySQL | sftp root@sitebuilt.net:/root/*.sql /data/MySQL |
Revision as of 12:30, 22 June 2018
omen development env
references
docker
- https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
- https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4
npm
tips
sudo -i sets you as superuser
systemctl doesn't work use
/etc/init.d/php7.0-fpm restart
or
service nginx restart
when editng files you need to set permissions
chmod 644 info.php
Numeric Readable Explanation 0 --- No access. 1 --x Execute access.* 2 -w- Write access.** 3 -wx Write and execute access.*** 4 r-- Read access. 5 r-x Read and execute access. 6 rw- Read and write access. 7 rwx Read, write and execute access.
startup
sudo service nginx start sudo service mysql start sudo service php7.0-fpm start
MySQL
mysqldump -uroot -pthepass --opt geniot > geniot.sql sftp root@sitebuilt.net:/root/*.sql /data/MySQL