上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: centos7 服务管理工具 systemctl常见操作 systemctl start 服务名称 [启动服务] systemctl stop 服务名称 [停止服务] systemctl restart 服务名称 [重启服务] systemctl reload 服务名称 [重新加载服务] syste 阅读全文
posted @ 2022-09-08 21:29 phper-liunian 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 打开官方链接homebrew # 安装命令 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # 上述命令在安装过程中,会出现超时,链接不到github的问题 阅读全文
posted @ 2022-08-20 08:13 phper-liunian 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 安装步骤 # 安装docker-machine base=https://github.com/docker/machine/releases/download/v0.16.2 && curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/usr 阅读全文
posted @ 2022-08-20 00:15 phper-liunian 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 下载vagrant # 方法一:命令行安装 brew install vagrant # 方法二: 下载镜像安装 https://releases.hashicorp.com/vagrant/2.3.0/vagrant_2.3.0_darwin_amd64.dmg 下载vmware 根据系统选择安装 阅读全文
posted @ 2022-08-19 00:21 phper-liunian 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Docker搭建go开发环境 # 搜索golang镜像 docker search golang # 下载golang镜像 docker pull golang:latest # 查看docker镜像 docker image ls golang 或者 docker images | grep go 阅读全文
posted @ 2022-08-08 12:23 phper-liunian 阅读(461) 评论(0) 推荐(0) 编辑
摘要: uwsgi部署django环境 下载uwsgi # 由于本地环境是aconda的虚拟环境,切换到虚拟环境 pip install uwsgi 创建uwsgi.ini文件, 文件内容如下 [uwsgi] # 项目路径 chdir = /mnt/hgfs/code/nm # 项目名称 project = 阅读全文
posted @ 2022-07-11 16:33 phper-liunian 阅读(61) 评论(0) 推荐(0) 编辑
摘要: HTTP协议: GET vs POST 从参数传递传递方式来看:GET请求的参数是直接拼接在地址栏URL后面,而POST请求的参数是放在请求体中 从长度限制来看:GET请求有具体的长度限制,一般不超过1024k。POST理论上没有限制,但是浏览器有个界限 从安全方面来看:GET请求相比于POST,因 阅读全文
posted @ 2022-06-12 21:59 phper-liunian 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Laravel9.x 自定义error Handling 在app/Exceptions目录下,新建ApiHandler自定义异常,用于返回json格式异常 <?php namespace App\Exceptions; use Exception; use Throwable; class Api 阅读全文
posted @ 2022-05-17 14:26 phper-liunian 阅读(184) 评论(0) 推荐(0) 编辑
摘要: centos7 部署django 1.拉取git代码到code用户下 2.进入到项目project目录下 3.创建虚拟目录 python3 -m venv 虚拟环境名称 4.激活虚拟环境 ~/project/虚拟环境名称/bin/activate 5.构建开发环境 python setup.py d 阅读全文
posted @ 2022-05-07 19:32 phper-liunian 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Django国际化 本地环境 python 3.9 Django 3.2 项目初始化后,在根目录的settings.py文件中 # 设置语言环境变量 LANGUAGES = [ ('zh-hans', 'Chinese'), ] # 国际化钩子开启 USE_I18N = True # 本地语言变量的 阅读全文
posted @ 2022-05-07 15:44 phper-liunian 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页