用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
加载中,请稍候......
  • 评论加载中,请稍候...
发评论

登录名:密码:找回密码 注册 记住登录状态

昵   称:

发评论

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

转载于:https://www.cnblogs.com/51sec/p/11296798.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值