File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 16
16
17
17
** 注意以下的目录改成自己对应的本地目录!**
18
18
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
-
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
+
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>
34
34
```
35
35
36
36
3. 启动Apache和MySQL
37
37
4. 在MySQL中创建一个数据库mydb,用户名:mymvc, 密码:123456。
38
+
38
39
**注意:mymvc这个用户需要有全部的数据库操作权限!**
40
+
39
41
5. 访问:http://my.mvc.com/home/migrate 执行初始化,生成todo数据表。
40
42
6. 访问:http://my.mvc.com/todo/index 可以执行CRUD的各种操作。
41
43
You can’t perform that action at this time.
0 commit comments