上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 本文只针对Nginx在不加载第三方模块的情况能处理哪些事情,由于第三方模块太多所以也介绍不完,当然本文本身也可能介绍的不完整,毕竟只是我个人使用过和了解到过得。 Nginx能做什么 反向代理 负载均衡 HTTP服务器(包含动静分离) 正向代理 以上就是我了解到的Nginx在不依赖第三方模块能处理的事 阅读全文
posted @ 2020-01-11 10:33 A毛毛 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.imooc.com/article/20411 公众号引用:https://mp.weixin.qq.com/s/4kDotmsmrd8YP26pZ2s8lw 阅读全文
posted @ 2020-01-11 10:21 A毛毛 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 在使用Docker创建了容器之后,如何进入该容器呢? 进入Docker容器比较常见的几种做法如下: 使用docker attach 使用SSH 使用nsenter 使用exec 一、使用docker attach进入Docker容器 Docker提供了attach命令来进入Docker容器。 接下来 阅读全文
posted @ 2020-01-11 09:25 A毛毛 阅读(8289) 评论(0) 推荐(0) 编辑
摘要: // User 用户表 type User struct { ID int UserName string Password string Articles []*Article `orm:"rel(m2m)"` } // Article 文章表 type Article struct { ID i 阅读全文
posted @ 2020-01-11 00:00 A毛毛 阅读(2672) 评论(0) 推荐(0) 编辑
摘要: 模板 this.Layout = "admin/layout.html" this.TplName = "admin/list.html" 在layout.html中必须有一下代码,才能显示list.html {{.Layout.Content}} LayoutSection this.Layout 阅读全文
posted @ 2020-01-10 16:46 A毛毛 阅读(309) 评论(0) 推荐(0) 编辑
摘要: // ShowLogin 登陆显示 func (c *UserController) ShowLogin() { username := c.Ctx.GetCookie("username") if username != "" { c.Data["username"] = username c.D 阅读全文
posted @ 2020-01-10 15:15 A毛毛 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 一、Apache的伪静态配置 1、网站根目录下需要有 .htaccess 文件,没有则自己创建一个,内容如下: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{RE 阅读全文
posted @ 2020-01-08 10:16 A毛毛 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 项目移植到另一台电脑后出现以下问题,及其解决方法: package models import ( "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql" ) // User 用户表 type User struct { I 阅读全文
posted @ 2020-01-07 16:20 A毛毛 阅读(3804) 评论(0) 推荐(0) 编辑
摘要: 1.首先上MySql的官网下载 https://dev.mysql.com/downloads/mysql/ 以我所选版本为例(免安装版),选择MYSQL Community Server 然后在右边选择你所对应的版本 我的是64位 下载相应的zip版本 下载完解压到你想要存放的位置 我的是解压到D 阅读全文
posted @ 2019-05-15 20:46 A毛毛 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 停止firewalld服务停止防火墙,并禁用这个服务 sudo systemctl stop firewalld.servicesudo systemctl disable firewalld.service安装iptables如果你要改用iptables的话,需要安装iptables服务: #安装 阅读全文
posted @ 2019-03-12 21:11 A毛毛 阅读(1144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页