Last active
March 11, 2016 16:45
-
-
Save kenshero/f20d9972acef24fbdccf to your computer and use it in GitHub Desktop.
mid term Devops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
แยก 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
configure nginx