码迷,mamicode.com
首页 >  
搜索关键字:nginx main    ( 89968个结果
fork
#include <stdio.h>#include <unistd.h>int main(){ int i = 10; pid_t pid; printf("Father's pid:%d\n", getpid()); pid = fork(); if(pid < 0) { perror("for ...
分类:其他好文   时间:2021-06-04 19:24:24    阅读次数:0
Hello,World
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 。 文件后缀名为.java 。Hello.java 。【注意】系统可能没有显示文件后缀名,我们需要手动 编写代码 public class Hello{ public static void main (String[] ar ...
分类:其他好文   时间:2021-06-04 19:12:47    阅读次数:0
GORM如何获取查询对象的属性
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:其他好文   时间:2021-06-04 19:06:12    阅读次数:0
第一个代码
Hello World 随便建一个文件夹,存放代码 新建一个java文件 文件后缀名.java Hello 【注意点】系统没有显示文件后缀名,需要手动打开 编写代码 public class Hello{ public static void main(String[] args){ System. ...
分类:其他好文   时间:2021-06-04 18:59:52    阅读次数:0
C语言自学教程--郝斌--C语言概述
C语言自学教程--郝斌--C语言概述 为什么需要A 什么是A 怎么用A 注意的问题 A应用的领域 A是否重要 时代 勤奋 出身 机遇 天赋 C语言概述 1.为什么学C语言 # include <stdio.h> int main(void) { printf("欢迎大家学习C语言!\n"); ret ...
分类:编程语言   时间:2021-06-04 18:52:39    阅读次数:0
Nginx 经典应用
一、自定义全局异常json数据 任何接口都是可能出错,4xx、5xx等 如果业务没有做好统一的错误管理,直接暴露给用户,无疑是看不懂 所以假如后端某个业务出错,Nginx 层也需要进行转换 让前端知道 Http 响应是200,其实是将错误的状态码定向至200,返回了全局兜底数据 location / ...
分类:其他好文   时间:2021-06-04 18:44:38    阅读次数:0
Date与LocalDateTime互转
public class test{ public static void main(String[] arg){ //Date转为LocalDateTime DateTimeFormatter sdf1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm ...
分类:其他好文   时间:2021-06-04 18:44:19    阅读次数:0
Linux下安装Nginx
作者:Grey 原文地址:Linux下安装Nginx 版本 Nginx:1.20.1 操作系统:CentOS 7 安装必要工具和依赖 yum -y install wget gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-dev ...
分类:系统相关   时间:2021-06-03 18:15:31    阅读次数:0
nginx的压缩
使用模块 ngx_http_gzip_module 用gzip方法压缩响应数据,节约带宽 一、启用或禁用gzip压缩 gzip on | off; 二、压缩比由低到高:1 到 9, 默认:1 gzip_comp_level level; 压缩比越高,越消耗CPU 三、匹配到客户端浏览器不执行压缩 g ...
分类:其他好文   时间:2021-06-03 18:08:25    阅读次数:0
ngix配制
* Official English Documentation: http://nginx.org/en/docs/ * Official Russian Documentation: http://nginx.org/ru/docs/ #==基础配置==# user nginx; #设置运行用户 ...
分类:其他好文   时间:2021-06-03 18:04:40    阅读次数:0
89968条   上一页 1 ... 27 28 29 30 31 ... 8997 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!