TypechoJoeTheme

H0meV避风港

统计

jonathan

Think different
标签搜索

最新文章

2022-12-30

怎么部署Redis服务

怎么部署Redis服务
简介Redis是一个开源的、使用C语言编写的、支持网络交互的、可基于内存也可持久化的Key-Value数据库。安装所需环境官方的文档说明了Redis不支持在Windows上运行, 在Windows上运行推荐的是用WSL(Windows的Linux子系统), 但是我这里也没有Windows, 所以这里演示用的我的一个服务器, 这个服务器用的是CentOS7.6服务器IP: 211.101.245.163下载源代码wget https://download.redis.io/redis-stable.tar.gz解压tar -zxvf redis-stable.tar.gz编译所需依赖make编译的可执行文件会在src下安装如果不执行make install我们使用它不是那么方便, 这条命令可以把编译好的可执行文件放在/usr/local/bin中make install启动服务修改配置文件bind 127.0.0.1 -::1 #如果你想让外网访问, 改为 0.0.0.0 daemonize no #改为 yes logfile "" #配置日志文件 requi...
2022年12月30日
0 阅读
1 评论
2022-12-02

C语言简单实现一下链表

C语言简单实现一下链表
C语言简单实现顺序表代码如下// // Created by Quagmire on 2022/11/28. // #include <stdio.h> #include <stdlib.h> #include <time.h> typedef int E; typedef struct ArrayList { E *element; int capacity; //容量 int size; //已用 } ArrayList; /** * 初始化 * @param list * @return */ _Bool init(ArrayList *list) { list->element = malloc(sizeof(E) * 10); if (list->element == NULL) return 0; list->capacity = 10; list->size = 0; return 1; } /** * malloc 扩...
2022年12月02日
0 阅读
0 评论
2022-07-27

RabbitMQ - Hello World

RabbitMQ - Hello World
RabbitMQ入门使用添加队列持久化不会自动删除引入依赖<!-- https://mvnrepository.com/artifact/com.rabbitmq/amqp-client --> <dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>5.15.0</version> </dependency>获取连接代码消费者代码//获取连接 Connection connection = Mq.getConnection(); //创建通道 Channel channel = connection.createChannel(); //定义默认消费者 DefaultConsumer consumer = new DefaultConsumer(channel) { /** ...
2022年07月27日
0 阅读
1 评论
2022-05-16

Springboot配置文件和多环境配置文件的使用

Springboot配置文件和多环境配置文件的使用
Springboot 配置文件的优先级Springboot配置文件可以放在4个地方项目根目录config目录下项目根目录下classpath目录的config目录下classpath目录下这个顺序也是它们的优先级,Springboot 默认是把配置文件放在优先级最低的目录下的,这样方便我们覆盖他的配置文件,实现多个环境,多个配置文件,但是有种更好的方式来实现多环境配置文件更好的多环境配置文件在classpath新增两个文件application-dev.propertis和application-test.properties,现在classpath下就有三个配置文件了application.propertiesapplication-dev.propertiesapplication-test.properties但是现在springboot还是默认走的application.properties这个配置文件,我们需要在这个配置文件里面配置#springboot多环境配置 spring.profiles.active=dev这样springboot就会用application-...
2022年05月16日
0 阅读
0 评论

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. frankrike tröja
    2023-03-23
  2. zxczxcwe
    2023-03-09
  3. fotballdrakter
    2023-03-07
  4. fotballdrakter
    2023-03-04
  5. fotballdrakt
    2023-03-02