<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[manwea的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/manwea</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; manwea]]></copyright><item><title><![CDATA[创建docker centos记录]]></title><link>https://blog.csdn.net/manwea/article/details/115871467</link><guid>https://blog.csdn.net/manwea/article/details/115871467</guid><author>manwea</author><pubDate>Mon, 19 Apr 2021 18:48:12 +0800</pubDate><description><![CDATA[docker run -it -d --name centos -p 80:80 -p 3306:3306 -p 8888:8888 -v /data:/
data centos:centos7 bash  注:windows下向vm添加共享文件夹后需要重启才生效
docker exec -it centos bash
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ;rpm -Uvh http.]]></description><category></category></item><item><title><![CDATA[使用laravel创建artisan命令]]></title><link>https://blog.csdn.net/manwea/article/details/113728082</link><guid>https://blog.csdn.net/manwea/article/details/113728082</guid><author>manwea</author><pubDate>Sat, 06 Feb 2021 17:16:09 +0800</pubDate><description><![CDATA[首先在Console/Commands目录下创建一个php类文件 ，该类要继承 Illuminate\Console\Command，
需要实现handle方法，因为执行命令后会自动执行handle方法，所以hanler方法内就是要实现的具体业务代码.
第二步，给protected name赋值，如：genkey等，本例以abc为名字第三步，找到Console/Kernel.php,在name赋值，如： genkey等，本例以 abc 为名字
第三步，找到Console/Kernel.php, 在name赋]]></description><category></category></item><item><title><![CDATA[go语言指针与c指针的区别]]></title><link>https://blog.csdn.net/manwea/article/details/113704729</link><guid>https://blog.csdn.net/manwea/article/details/113704729</guid><author>manwea</author><pubDate>Fri, 05 Feb 2021 22:06:08 +0800</pubDate><description><![CDATA[c语言定义整型指针
int *p

go语言定义整型指针
var p *int

go语言指针学习

]]></description><category></category></item><item><title><![CDATA[go for]]></title><link>https://blog.csdn.net/manwea/article/details/113700652</link><guid>https://blog.csdn.net/manwea/article/details/113700652</guid><author>manwea</author><pubDate>Fri, 05 Feb 2021 17:28:07 +0800</pubDate><description><![CDATA[go语言只支持for语句
用go语言来输出从0 到100
for i:=0; i&lt;=100; i++ {
	fmt.Println(i)
}

第二种写法，类似其它语言的while语句
i: = 0
for{
	if(i&gt;100){
		break;
	}
	fmt.Println(i)
}

第三种简写形式
i := 0
for i&lt;101 {
	fmt.Println(i)
}

来源： Go语言 循环语句

...]]></description><category></category></item><item><title><![CDATA[go语言函数]]></title><link>https://blog.csdn.net/manwea/article/details/113700055</link><guid>https://blog.csdn.net/manwea/article/details/113700055</guid><author>manwea</author><pubDate>Fri, 05 Feb 2021 17:02:16 +0800</pubDate><description><![CDATA[由于go语言是强类型语言，定义函数时需要指定参数类型，返回值类型，以下是定义函数的语法格式
func 函数名(参数列表)(返回值列表){
    函数体
}

以下是定义函数的实例
func plus(a, b) int{
	return a + b
}

更多内容请查看 go语言函数

...]]></description><category></category></item><item><title><![CDATA[docker搭建nginx+php环境]]></title><link>https://blog.csdn.net/manwea/article/details/106888187</link><guid>https://blog.csdn.net/manwea/article/details/106888187</guid><author>manwea</author><pubDate>Sun, 21 Jun 2020 17:26:42 +0800</pubDate><description><![CDATA[FROM centos:centos7


RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm &amp;&amp; \
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm &amp;&amp; \
yum install -y gcc make psmisc net-tools bash-completion n]]></description><category></category></item><item><title><![CDATA[Docker完整教程]]></title><link>https://blog.csdn.net/manwea/article/details/103660676</link><guid>https://blog.csdn.net/manwea/article/details/103660676</guid><author>manwea</author><pubDate>Thu, 20 Feb 2020 11:54:04 +0800</pubDate><description><![CDATA[Docker 是一种运行于 Linux 和 Windows 上的软件，用于创建、管理和编排容器。

Windows 版 Docker 需要运行在一个安装了 64 位 Windows 10 操作系统的计算机上，通过启动一个独立的引擎来提供 Docker 环境。
需要确认在 Windows 10 操作系统中，Hyper-V 和 容器 特性已安装并且开启, 然后就可以安装  Windows 版 Doc...]]></description><category></category></item><item><title><![CDATA[算法笔记]]></title><link>https://blog.csdn.net/manwea/article/details/104406970</link><guid>https://blog.csdn.net/manwea/article/details/104406970</guid><author>manwea</author><pubDate>Thu, 20 Feb 2020 11:48:28 +0800</pubDate><description><![CDATA[1.如何判断一个链表是否有环
经典解法是快慢指针
typedef struct _Link{
	Node *head;
	int data;
} Link;
typedef struct _Node{
	struct _Node *next;
	int data;
}Node;
int checkCircle(Link *link){
	Node *fast, *slow;
	if(link-&g...]]></description><category></category></item><item><title><![CDATA[PHP扩展开发完整教程(下)]]></title><link>https://blog.csdn.net/manwea/article/details/103566810</link><guid>https://blog.csdn.net/manwea/article/details/103566810</guid><author>manwea</author><pubDate>Mon, 16 Dec 2019 19:22:02 +0800</pubDate><description><![CDATA[第11章 PHP中的面向对象

实例化一个对象并且调用它的方法

php public function hello() { 
	echo "hello world!\n"; }
}

function test_call() { 
	$obj = new baby(); 
	$obj-&gt;hello(); 
}

下面我们在扩展中实现以上test_call函数。
zend_class_ent...]]></description><category></category></item><item><title><![CDATA[PHP扩展开发完整教程(中)]]></title><link>https://blog.csdn.net/manwea/article/details/103557214</link><guid>https://blog.csdn.net/manwea/article/details/103557214</guid><author>manwea</author><pubDate>Mon, 16 Dec 2019 10:25:26 +0800</pubDate><description><![CDATA[第七章 函数的参数

最简单的获取函数调用者传递过来的参数便是使用zend_parse_parameters()函数,第一个参数是ZEND_NUM_ARGS() TSRMLS_CC代表参数个数,下一个参数是一个用于格式化的字符串，就像printf的第一个参数一样

Type Specifiers
Spec	Type	Locals
a	array	zval*
A	array or object		z...]]></description><category></category></item><item><title><![CDATA[PHP扩展开发完整教程(上)]]></title><link>https://blog.csdn.net/manwea/article/details/103545814</link><guid>https://blog.csdn.net/manwea/article/details/103545814</guid><author>manwea</author><pubDate>Sun, 15 Dec 2019 12:31:44 +0800</pubDate><description><![CDATA[第一章 PHP的生命周期

php的运行方式有两种:



以模块的方式加载到web-server里去,与web-server一块解析被请求的php脚本
以fastcgi模式运行php的时候,一般需要手动启动php服务



cgi是指通用网关接口,分别为每一个请求创建一个进程,fastcgi是使用持续的进程来处理请求
php有多种sapi,一般最常用的是cli模式
php程序的启动可以看作有两个...]]></description><category></category></item><item><title><![CDATA[GO语言学习笔记]]></title><link>https://blog.csdn.net/manwea/article/details/103470248</link><guid>https://blog.csdn.net/manwea/article/details/103470248</guid><author>manwea</author><pubDate>Tue, 10 Dec 2019 16:31:12 +0800</pubDate><description><![CDATA[第一章 Go语言简介

协程是go最显著的特性
最好读一读go语言源码 ,项目链接：https://github.com/golang/go
go语言只支持i++,别的写法会报错
GOPATH 是一个路径，用来存放开发中需要用到的代码包。
linux中需要设置  GOROOT(安装目录) 和 PATH,把安装目录追加到PATH中,export PATH=$ PATH:$ GOROOT/bin:$G...]]></description><category></category></item><item><title><![CDATA[[算法]给出一个数组,算出出现在一个固定大小的滑动窗口中的最大值的结果集]]></title><link>https://blog.csdn.net/manwea/article/details/103299481</link><guid>https://blog.csdn.net/manwea/article/details/103299481</guid><author>manwea</author><pubDate>Thu, 28 Nov 2019 19:20:54 +0800</pubDate><description><![CDATA[&lt;?php
$arr = [1,4,5,8, 100, 20, 30 , -1, 9, 6, 70, 35, 48, 90];

function maxSlidingWindow($arr, $k){
	if(!$arr) return [];
	
	$window = []; $res = [];
	foreach($arr as $index =&gt; $val){
       ...]]></description><category></category></item><item><title><![CDATA[[算法]在二叉树上查找任意两个节点的公共祖先]]></title><link>https://blog.csdn.net/manwea/article/details/103290818</link><guid>https://blog.csdn.net/manwea/article/details/103290818</guid><author>manwea</author><pubDate>Thu, 28 Nov 2019 11:51:21 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;

typedef struct _treeNode{
    struct _treeNode *left, *right;
    int data;
}treeNode;


treeNode *findPorQ(treeNode *root, treeNode *p, treeNode *q){
    if(root==NUll || r...]]></description><category></category></item><item><title><![CDATA[[算法]如何判断一棵二叉树是二叉搜索树]]></title><link>https://blog.csdn.net/manwea/article/details/103288543</link><guid>https://blog.csdn.net/manwea/article/details/103288543</guid><author>manwea</author><pubDate>Thu, 28 Nov 2019 10:40:00 +0800</pubDate><description><![CDATA[方法一:中序遍历


#include &lt;stdio.h&gt;

typedef struct _node{
    struct _node *left, *right;
    int data;
}node;

int helper(node *left, node *root, node *right){
    if(root == NULL)
        return 1...]]></description><category></category></item><item><title><![CDATA[[算法]堆排序]]></title><link>https://blog.csdn.net/manwea/article/details/102909814</link><guid>https://blog.csdn.net/manwea/article/details/102909814</guid><author>manwea</author><pubDate>Tue, 05 Nov 2019 09:29:31 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;

void swap(int *arr, int i, int j){
	int temp = arr[i];
	arr[i] = arr[j];
	arr[j] = temp;
}
void printArr(int arr[], int len){
	printf("======================================...]]></description><category></category></item><item><title><![CDATA[[算法面试]如何实现一个数组每个元素依次向右移动k位]]></title><link>https://blog.csdn.net/manwea/article/details/102815192</link><guid>https://blog.csdn.net/manwea/article/details/102815192</guid><author>manwea</author><pubDate>Wed, 30 Oct 2019 11:04:55 +0800</pubDate><description><![CDATA[本着节省内存,减少时间复杂度的原则,用c实现如下:


void swap(int *x, int *y){
	int tmp = *x;
	*x = *y;
	*y = tmp;
}
void right_k(int arr[], int len, int k){
	int i;
	for (i = 0; i &lt; len; i++){
		if (i + k &lt; len - 1){
...]]></description><category></category></item><item><title><![CDATA[Nginx红黑树分析]]></title><link>https://blog.csdn.net/manwea/article/details/102775031</link><guid>https://blog.csdn.net/manwea/article/details/102775031</guid><author>manwea</author><pubDate>Mon, 28 Oct 2019 09:43:04 +0800</pubDate><description><![CDATA[红黑树的五个特性如下:

红黑树是一棵平衡二叉树
	每个节点非红即黑
	根节点是黑色
	红节点的子节点必为黑色
	任一节点到其各个叶子节点所经过的黑色节点是相等的
nginx中的红黑树数据结构如下:


struct ngx_rbtree_s{
    ngx_rbtree_node_t *root;//根节点指针
    ngx_rbtree_node_t *sentinel;//叶子节点
  ...]]></description><category></category></item><item><title><![CDATA[RabbitMQ实战-笔记]]></title><link>https://blog.csdn.net/manwea/article/details/102752993</link><guid>https://blog.csdn.net/manwea/article/details/102752993</guid><author>manwea</author><pubDate>Sat, 26 Oct 2019 11:11:43 +0800</pubDate><description><![CDATA[第二章 理解消息通信

2.1消费者与生产者的概念 信道是建立在tcp上的虚拟连接,可以减少tcp连接的开销

2.2 amqp消息路由必须有三部分: 交换器,队列和绑定, 生产者把消息发布到交换器上,消息最终到达队列,绑定决定了消息如何从路由器路由到特定队列.

2.2.1通过amqp的consume命令可以将信道设置为接收模式,直到取消对队列的订阅为止.消费者在消费了最近接收的那条消息后就可...]]></description><category></category></item><item><title><![CDATA[Elasticsearch学习笔记]]></title><link>https://blog.csdn.net/manwea/article/details/102668747</link><guid>https://blog.csdn.net/manwea/article/details/102668747</guid><author>manwea</author><pubDate>Tue, 22 Oct 2019 08:36:48 +0800</pubDate><description><![CDATA[安装:到官网下载www.elastic.co
	运行需要jdk支持,运行 bin/elasticsearch ,然后访问http://127.0.0.1:9200
	安装插件查看已安装插件elasticsearch-plugin.bat list ,安装elasticsearch-plugin.bat install analysis-icu,查看插件列表http://127...]]></description><category></category></item></channel></rss>