blog


  • Home

  • Categories

  • Archives

  • Tags

  • Search

结构

Posted on 2018-12-17 | In Golang

结构体定义

结构体定义的一般方式如下:

1
2
3
4
5
type identifier struct {
    field1 type1
    field2 type2
    ...
}
Read more »

Nginx

Posted on 2018-12-15 | In Tools

Nginx

Nginx(发音同engine x)是异步框架的 Web服务器,也可以用作反向代理,负载平衡器 和 HTTP缓存。

Read more »

HTTP状态码

Posted on 2018-12-15 | In Network

HTTP状态码(HTTP Status Code)

1xx(临时响应)表示临时响应并需要请求者继续执行操作的状态代码。代码 说明

  • 100 (继续) 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。
  • 101 (切换协议) 请求者已要求服务器切换协议,服务器已确认并准备切换。
Read more »

Golang 继承

Posted on 2018-12-15 | In Golang

Golang 继承

Go语言的interface概念相对于C++中的基类,通过interface来实现多态功能。

在C++中,当需要实现多态功能时,步骤是首先定义一个基类,该基类使用虚函数或者纯虚函数抽象了所有子类会用到的共同的最基本的成员函数,之后子类继承该基类,然后每个派生类自定义自己的虚函数实现。最后在使用基类指针或者引用的地方传入派生类,程序根据具体传入的对象来调用对象的函数。

Read more »

linux 文件系统

Posted on 2018-12-07 | In linux

linux 文件系统

物理磁盘

硬盘就是把这种磁性存储介质做成一个个盘片,每一个盘片上都分布着数量巨大的磁性存储单位,使用磁性读写头对盘片进行写入和读取(从原理上类似黑胶唱片的播放)。

Read more »

常用命令

Posted on 2018-12-07 | In linux

常用命令

scp

1
2
3
4
5
6
7
8
# 拷贝远程文件到本地
scp remote_username@remote_ip:remote_folder/file_name .
scp remote_username@remote_ip:remote_folder/file_name local_folder
scp -r remote_username@remote_ip:remote_folder local_folder

# 拷贝本地文件到远程
scp local_file remote_username@remote_ip:remote_folder
scp -r local_folder remote_username@remote_ip:remote_folder
Read more »
1 2 3
C

C

Elegant theme for Jekyll.

26 posts
7 categories
25 tags
© 2019 C
Powered by Jekyll
Theme - NexT.Muse