Skip to content

Commit e109d9f

Browse files
authored
Update README.md
1 parent 5467f9f commit e109d9f

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

README.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,28 @@
1616

1717
**注意以下的目录改成自己对应的本地目录!**
1818

19-
```apache
20-
21-
<Directory "D:/demos/myMVC/app/web">
22-
Options Indexes FollowSymLinks Includes ExecCGI
23-
AllowOverride All
24-
Require all granted
25-
</Directory>
26-
27-
<VirtualHost *:80>
28-
ServerAdmin [email protected]
29-
DocumentRoot "D:/demos/myMVC/app/web"
30-
ServerName my.mvc.com
31-
ErrorLog "logs/my.mvc.com.com-error.log"
32-
CustomLog "logs/my.mvc.com-access.log" common
33-
</VirtualHost>
19+
```apache
20+
21+
<Directory "D:/demos/myMVC/app/web">
22+
Options Indexes FollowSymLinks Includes ExecCGI
23+
AllowOverride All
24+
Require all granted
25+
</Directory>
26+
27+
<VirtualHost *:80>
28+
ServerAdmin [email protected]
29+
DocumentRoot "D:/demos/myMVC/app/web"
30+
ServerName my.mvc.com
31+
ErrorLog "logs/my.mvc.com.com-error.log"
32+
CustomLog "logs/my.mvc.com-access.log" common
33+
</VirtualHost>
3434
```
3535
3636
3. 启动Apache和MySQL
3737
4. 在MySQL中创建一个数据库mydb,用户名:mymvc, 密码:123456。
38+
3839
**注意:mymvc这个用户需要有全部的数据库操作权限!**
40+
3941
5. 访问:http://my.mvc.com/home/migrate 执行初始化,生成todo数据表。
4042
6. 访问:http://my.mvc.com/todo/index 可以执行CRUD的各种操作。
4143

0 commit comments

Comments
 (0)