Skip to content

Instantly share code, notes, and snippets.

@kenshero
Last active March 11, 2016 16:45
Show Gist options
  • Save kenshero/f20d9972acef24fbdccf to your computer and use it in GitHub Desktop.
Save kenshero/f20d9972acef24fbdccf to your computer and use it in GitHub Desktop.
mid term Devops
sudo apt-get update
sudo apt-get install nginx
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0-fpm
sudo apt-get install php7.0-mysql
sudo apt-get install mysql-server
sudo service mysql restart
@kenshero
Copy link
Author

แยก server

CREATE USER 'wordpressuser'@'web_server_IP' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'web_server_ip';
FLUSH PRIVILEGES;

sudo apt-get install mysql-client
mysql -u wordpressuser -h database_server_IP -p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment