用GCP云端Ubuntu创建MySQL计算进程

原文: Create a MySQL Computer Engine VM Instance Using Ubuntu in Google Cloud


1. Create Ubuntu VM Instance




2. Change Firewall Settings


3. Install MySQL 



Connected, host fingerprint: ssh-rsa 2048 13:5D:03:99:0D:A2:B8:FB:8B:2A:DB:51:37:90:C7:5B:00:33:0E:0D:D9:77:E2:BB:EC:04:49:9E:55:F7:83:86
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-1019-gcp x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc
define('DB_USER', 'WP_USER');


define('DB_PASSWORD', 'P@ssw0rd');

. . .

define('FS_METHOD', 'direct');



sudo chown -R www-data:www-data /var/www
sudo find /var/www/ -type d -exec chmod 755 {} \;
sudo find /var/www/ -type f -exec chmod 644 {} \;



johnyan_ca@wp-php:/var/www/html$ mv index.html apache.html

Now you should be able to access homepage.

Sometimes, you may be able to access home page, but not able to get into any other links. That is because of permalinks not working.
In newer versions of apache2, you need to enable the module:

0

阅读 评论 收藏 禁止转载 喜欢 打印举报/Report
  • 评论加载中,请稍候...
发评论

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

    posted @ 2018-11-09 09:21  netsec  阅读(146)  评论(0)    收藏  举报