因为我想使用ngrok代理到外面去,所以设置了一个ngrok的地址,其他的你看着设置 重启nginx sudo service nginx restart 之后本地浏览器访问树洞外链
先同意协议再说 之后
设置数据库,先创建一个数据库
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
➜ vhost mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 269 Server version: 5.5.56-log Source distribution
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.