linux系统之源码编译部署redis数据库(代码片段)

江湖有缘 江湖有缘     2022-12-30     124

关键词:

Linux系统之源码编译部署Redis数据库

一、Redis数据库介绍

1.Redis简介

Redis 是完全开源的,遵守 BSD 协议,是一个高性能的 key-value 数据库。

2.Redis特点

  • Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。
  • Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,zset,hash等数据结构的存储。
  • Redis支持数据的备份,即master-slave模式的数据备份。

二、检查本地系统版本

[root@node data]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"


三、下载Redis软件包

1.下载软件

[root@node redis]# wget https://download.redis.io/releases/redis-6.2.6.tar.gz
--2022-11-06 16:33:47--  https://download.redis.io/releases/redis-6.2.6.tar.gz
Resolving download.redis.io (download.redis.io)... 45.60.125.1
Connecting to download.redis.io (download.redis.io)|45.60.125.1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2476542 (2.4M) [application/octet-stream]
Saving to: ‘redis-6.2.6.tar.gz’

100%[=========================================================================================================>] 2,476,542   4.90MB/s   in 0.5s   

2022-11-06 16:33:49 (4.90 MB/s) - ‘redis-6.2.6.tar.gz’ saved [2476542/2476542]

2.查看redis安装包

[root@node redis]# ls
redis-6.2.6.tar.gz

四、安装redis前环境准备工作

1.解压redis压缩包

[root@node redis]# tar -xzf redis-6.2.6.tar.gz 
[root@node redis]# ls
redis-6.2.6  redis-6.2.6.tar.gz

2.安装gcc模块

[root@node redis]# yum -y install gcc automake autoconf libtool make
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
base                                                                                                                        | 3.6 kB  00:00:00     
docker-ce-stable                                                                                                            | 3.5 kB  00:00:00     
extras                                                                                                                      | 2.9 kB  00:00:00     
mongodb-org                                                                                                                 | 2.9 kB  00:00:00     
mysql-connectors-community                                                                                                  | 2.6 kB  00:00:00     
mysql-tools-community                                                                                                       | 2.6 kB  00:00:00     
mysql57-community                                                                                                           | 2.6 kB  00:00:00     
updates                                                                                                                     | 2.9 kB  00:00:00     
mongodb-org/7/primary_db                                                                                                    | 130 kB  00:00:01     
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
---> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: libgomp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: libgcc >= 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-44.el7.x86_64
---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package make.x86_64 1:3.82-23.el7 will be updated
---> Package make.x86_64 1:3.82-24.el7 will be an update
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-44.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-326.el7_9 will be installed
--> Processing Dependency: glibc-headers = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64
--> Processing Dependency: glibc = 2.17-326.el7_9 for package: glibc-devel-2.17-326.el7_9.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-326.el7_9.x86_64
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-44.el7 will be an update
---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-44.el7 will be an update
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-260.el7 will be updated
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64
---> Package glibc.x86_64 0:2.17-326.el7_9 will be an update
---> Package glibc-headers.x86_64 0:2.17-326.el7_9 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-326.el7_9.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-326.el7_9.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-326.el7_9 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-1160.76.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
 Package                                Arch                        Version                                     Repository                    Size
===================================================================================================================================================
Installing:
 autoconf                               noarch                      2.69-11.el7                                 base                         701 k
 automake                               noarch                      1.13.4-3.el7                                base                         679 k
 gcc                                    x86_64                      4.8.5-44.el7                                base                          16 M
 libtool                                x86_64                      2.4.2-22.el7_3                              base                         588 k
Updating:
 make                                   x86_64                      1:3.82-24.el7                               base                         421 k
Installing for dependencies:
 cpp                                    x86_64                      4.8.5-44.el7                                base                         5.9 M
 glibc-devel                            x86_64                      2.17-326.el7_9                              updates                      1.1 M
 glibc-headers                          x86_64                      2.17-326.el7_9                              updates                      691 k
 kernel-headers                         x86_64                      3.10.0-1160.76.1.el7                        updates                      9.1 M
 m4                                     x86_64                      1.4.16-10.el7                               base                         256 k
 perl-Test-Harness                      noarch                      3.28-3.el7                                  base                         302 k
 perl-Thread-Queue                      noarch                      3.02-2.el7                                  base                          17 k
Updating for dependencies:
 glibc                                  x86_64                      2.17-326.el7_9                              updates                      3.6 M
 glibc-common                           x86_64                      2.17-326.el7_9                              updates                       12 M
 libgcc                                 x86_64                      4.8.5-44.el7                                base                         103 k
 libgomp                                x86_64                      4.8.5-44.el7                                base                         159 k

Transaction Summary
===================================================================================================================================================
Install  4 Packages (+7 Dependent packages)
Upgrade  1 Package  (+4 Dependent packages)

Total size: 51 M
Total download size: 35 M
Downloading packages:
(1/11): automake-1.13.4-3.el7.noarch.rpm                                                                                    | 679 kB  00:00:00     
(2/11): autoconf-2.69-11.el7.noarch.rpm                                                                                     | 701 kB  00:00:00     
(3/11): glibc-devel-2.17-326.el7_9.x86_64.rpm                                                                               | 1.1 MB  00:00:00     
(4/11): libtool-2.4.2-22.el7_3.x86_64.rpm                                                                                   | 588 kB  00:00:00     
(5/11): m4-1.4.16-10.el7.x86_64.rpm                                                                                         | 256 kB  00:00:00     
(6/11): perl-Test-Harness-3.28-3.el7.noarch.rpm                                                                             | 302 kB  00:00:00     
(7/11): perl-Thread-Queue-3.02-2.el7.noarch.rpm                                                                             |  17 kB  00:00:00     
(8/11): kernel-headers-3.10.0-1160.76.1.el7.x86_64.rpm                                                                      | 9.1 MB  00:00:01     
(9/11): cpp-4.8.5-44.el7.x86_64.rpm                                                                                         | 5.9 MB  00:00:02     
(10/11): glibc-headers-2.17-326.el7_9.x86_64.rpm                                                                            | 691 kB  00:00:03     
(11/11): gcc-4.8.5-44.el7.x86_64.rpm                                                                                        |  16 MB  00:00:06     
---------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                              4.7 MB/s |  35 MB  00:00:07     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-44.el7.x86_64                                                                                                     1/21 
  Updating   : glibc-common-2.17-326.el7_9.x86_64                                                                                             2/21 
  Updating   : glibc-2.17-326.el7_9.x86_64                                                                                                    3/21 
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
  Installing : cpp-4.8.5-44.el7.x86_64                                                                                                        4/21 
  Installing : m4-1.4.16-10.el7.x86_64                                                                                                        5/21 
  Installing : autoconf-2.69-11.el7.noarch                                                                                                    6/21 
  Updating   : libgomp-4.8.5-44.el7.x86_64                                                                                                    7/21 
  Installing : perl-Thread-Queue-3.02-2.el7.noarch                                                                                            8/21 
  Installing : perl-Test-Harness-3.28-3.el7.noarch                                                                                            9/21 
  Installing : automake-1.13.4-3.el7.noarch                                                                                                  10/21 
  Installing : kernel-headers-3.10.0-1160.76.1.el7.x86_64                                                                                    11/21 
  Installing : glibc-headers-2.17-326.el7_9.x86_64                                                                                           12/21 
  Installing : glibc-devel-2.17-326.el7_9.x86_64                                                                                             13/21 
  Installing : gcc-4.8.5-44.el7.x86_64                                                                                                       14/21 
  Installing : libtool-2.4.2-22.el7_3.x86_64                                                                                                 15/21 
  Updating   : 1:make-3.82-24.el7.x86_64                                                                                                     16/21 
  Cleanup    : libgomp-4.8.5-36.el7.x86_64                                                                                                   17/21 
  Cleanup    : 1:make-3.82-23.el7.x86_64                                                                                                     18/21 
  Cleanup    : glibc-common-2.17-260.el7.x86_64                                                                                              19/21 
  Cleanup    : glibc-2.17-260.el7.x86_64                                                                                                     20/21 
  Cleanup    : libgcc-4.8.5-36.el7.x86_64                                                                                                    21/21 
  Verifying  : kernel-headers-3.10.0-1160.76.1.el7.x86_64                                                                                     1/21 
  Verifying  : autoconf-2.69-11.el7.noarch                                                                                                    2/21 
  Verifying  : glibc-2.17-326.el7_9.x86_64                                                                                                    3/21 
  Verifying  : perl-Test-Harness-3.28-3.el7.noarch                                                                                            4/21 
  Verifying  : automake-1.13.4-3.el7.noarch                                                                                                   5/21 
  Verifying  : glibc-common-2.17-326.el7_9.x86_64                                                                                             6/21 
  Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                                                                                            7/21 
  Verifying  : cpp-4.8.5-44.el7.x86_64                                                                                                        8/21 
  Verifying  : gcc-4.8.5-44.el7.x86_64                                                                                                        9/21 
  Verifying  : glibc-headers-2.17-326.el7_9.x86_64                                                                                           10/21 
  Verifying  : glibc-devel-2.17-326.el7_9.x86_64                                                                                             11/21 
  Verifying  : 1:make-3.82-24.el7.x86_64                                                                                                     12/21 
  Verifying  : m4-1.4.16-10.el7.x86_64                                                                                                       13/21 
  Verifying  : libgcc-4.8.5-44.el7.x86_64                                                                                                    14/21 
  Verifying  : libgomp-4.8.5-44.el7.x86_64                                                                                                   15/21 
  Verifying  : libtool-2.4.2-22.el7_3.x86_64                                                                                                 16/21 
  Verifying  : libgcc-4.8.5-36.el7.x86_64                                                                                                    17/21 
  Verifying  : glibc-common-2.17-260.el7.x86_64                                                                                              18/21 
  Verifying  : glibc-2.17-260.el7.x86_64                                                                                                     19/21 
  Verifying  : libgomp-4.8.5-36.el7.x86_64                                                                                                   20/21 
  Verifying  : 1:make-3.82-23.el7.x86_64                                                                                                     21/21 

Installed:
  autoconf.noarch 0:2.69-11.el7       automake.noarch 0:1.13.4-3.el7       gcc.x86_64 0:4.8.5-44.el7       libtool.x86_64 0:2.4.2-22.el7_3      

Dependency Installed:
  cpp.x86_64 0:4.8.5-44.el7                             glibc-devel.x86_64 0:2.17-326.el7_9          glibc-headers.x86_64 0:2.17-326.el7_9         
  kernel-headers.x86_64 0:3.10.0-1160.76.1.el7          m4.x86_64 0:1.4.16-10.el7                    perl-Test-Harness.noarch 0:3.28-3.el7         
  perl-Thread-Queue.noarch 0:3.02-2.el7                

Updated:
  make.x86_64 1:3.82-24.el7                                                                                                                        

Dependency Updated:
  glibc.x86_64 0:2.17-326.el7_9      glibc-common.x86_64 0:2.17-326.el7_9      libgcc.x86_64 0:4.8.5-44.el7      libgomp.x86_64 0:4.8.5-44.el7     

Complete!

五、编译redis源码包

1.进入软件目录

[root@node redis]# cd redis-6.2.6/
[root@node redis-6.2.6]# ls
00-RELEASENOTES  CONDUCT       COPYING  INSTALL   MANIFESTO  redis.conf  runtest-cluster    runtest-sentinel  src    TLS.md
BUGS             CONTRIBUTING  deps     Makefile  README.md  runtest     runtest-moduleapi  sentinel.conf     tests  utils
[root@node redis-6.2.6]# cd deps/
[root@node deps]# ls
hdr_histogram  hiredis  jemalloc  linenoise  lua  Makefile  README.md  update-jemalloc.sh

2.编译redis前准备工作

[root@node deps]# make lua hiredis linenoise hdr_histogram jemalloc

3.编译redis

[root@node src]# make PREFIX=/usr/local/redis MALLOC=libc install
   


六、启动redis

1.配置环境变量

[root@node src]# vim /etc/profile.d/redis.sh
[root@node src]# cat /etc/profile.d/redis.sh 
#!/bin/bash
##########################################################
#File Name:/etc/profile.d/redis.sh
#Version:V1.0
#Aurhor:jeven
#Emali:111116@qq.com
#Created Time:2022-11-06 16:53:28
#Description:
##########################################################
export PATH=$PATH:/usr/local/redis/bin
[root@node src]# source !$
source /etc/profile.d/redis.sh

2.检查redis版本

[root@node src]# redis-server --version
Redis server v=6.2.6 sha=00000000:0 malloc=libc bits=64 build=50e1147e6629be9b

3.创建redis相关目录

mkdir -p /usr/local/redis/etc,logs,data

4.编辑redis配置文件

[root@node src]# cat  /usr/local/redis/etc/redis.conf
daemonize yes
supervised systemd
pidfile /var/run/redis.pid
port 6379
logfile /usr/local/redis/logs/redis.log
dbfilename dump.rdb
dir /usr/local/redis/data

maxmemory 1G

bind 192.168.3.166 127.0.0.1

timeout 300
loglevel notice

databases 16
save 900 1
save 300 10
save 60 10000

rdbcompression yes

maxclients 10000
appendonly yes
appendfilename appendonly.aof
appendfsync everysec

5.启动redis数据库服务

redis-server /usr/local/redis/etc/redis.conf

七、连接redis数据库

1.检查redis状态

[root@node src]#  ps -ef |grep redis
root      62216      1  0 16:57 ?        00:00:00 redis-server 192.168.3.166:6379
root      62271  40947  0 16:58 pts/1    00:00:00 grep --color=auto redis

2.连接redis

[root@node src]# redis-cli  -h 192.168.3.166 -p 6379
192.168.3.166:6379> info
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:50e1147e6629be9b
redis_mode:standalone
os:Linux 3.10.0-957.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:4.8.5
process_id:62216
process_supervised:no
run_id:2214123488103e78bca63970b6830e53341b9a66
tcp_port:6379
server_time_usec:1667725122023863
uptime_in_seconds:86
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:6780738
executable:/aa/redis/redis-6.2.6/src/redis-server
config_file:/usr/local/redis/etc/redis.conf
io_threads_active:0

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:48
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:936080
used_memory_human:914.14K
used_memory_rss:2478080
used_memory_rss_human:2.36M
used_memory_peak:990912
used_memory_peak_human:967.69K
used_memory_peak_perc:94.47%
used_memory_overhead:901168
used_memory_startup:884112
used_memory_dataset:34912
used_memory_dataset_perc:67.18%
allocator_allocated:901664
allocator_active:2440192
allocator_resident:2440192
total_system_memory:8182054912
total_system_memory_human:7.62G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:1000000000
maxmemory_human:953.67M
maxmemory_policy:noeviction
allocator_frag_ratio:2.71
allocator_frag_bytes:1538528
allocator_rss_ratio:1.00
allocator_rss_bytes:0
rss_overhead_ratio:1.02
rss_overhead_bytes:37888
mem_fragmentation_ratio:2.75
mem_fragmentation_bytes:1576416
mem_not_counted_for_evict:20
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:17032
mem_aof_buffer:24
mem_allocator:libc
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1667725036
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:1
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0
aof_current_size:0
aof_base_size:0
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:0

# Stats
total_connections_received:1
total_commands_processed:1
instantaneous_ops_per_sec:0
total_net_input_bytes:31
total_net_output_bytes:20324
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:1
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
total_forks:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:0
dump_payload_sanitizations:0
total_reads_processed:2
total_writes_processed:1
io_threaded_reads_processed:0
io_threaded_writes_processed:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:1a8b2d03ea009393183110d55ca0c6b619127210
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:0.132352
used_cpu_user:0.044117
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
used_cpu_sys_main_thread:0.132334
used_cpu_user_main_thread:0.044111

# Modules

# Errorstats

# Cluster
cluster_enabled:0

# Keyspace

linux系统之使用yum安装redis数据库(代码片段)

Linux系统之使用yum安装Redis数据库一、检查系统版本二、检查yum仓库状态三、查看系统默认提供的redis版本四、安装redis1.安装redis2.启动redis服务五、连接redis一、检查系统版本[root@server~]#cat/etc/os-releaseNAME="CentOSLinux"VERSI... 查看详情

redis数据库的编译安装方法(代码片段)

Redis数据库的编译安装方法一、Redis介绍二、检查本地系统版本1.检查系统版本2.检查系统内核版本三、下载Redis的源码包1.下载redis源码包2.解压源码包四、关闭防火墙和selinux1.关闭防火墙2.关闭selinux五、编译前环境准备工作1.安装... 查看详情

pancakeswap前端源码编译及部署-linux(代码片段)

文章目录相关信息一、源码编译环境部署1.1yarn部署1.2nodejs部署1.3安装git二、pancakeswap前端源码编译2.1下载pancakeswap前端源码2.2编译pancakeswap前端源码三、编译报错解决3.1git未安装3.2nodejs版本低3.3git没有初始化3.4git无法被找到四、... 查看详情

linux集成环境部署mysql+tomcat+redis(代码片段)

...问日志配置Nginx安装配置MySQL安装和配置MySQL是一个关系型数据库管理系统,由瑞典MysqlAB公司开发,目前属于Oracle旗下产品。MySQL是最流行的关系型数据库管理系统之一 查看详情

精通linux系列linux下常用安装服务软件源码编译安装方式与实战部署jdk环境(代码片段)

...用的服务部应用署以及相关运维知识,还有一些Linux系统的深层解析,Linux系列专栏地址,欢迎小伙伴们订阅!🚀个人主页:大数据小禅🚀粉丝福利:加入小禅的大数据社群🚀欢迎小伙伴们点... 查看详情

精通linux系列linux下常用安装服务软件源码编译安装方式与实战部署jdk环境(代码片段)

...用的服务部应用署以及相关运维知识,还有一些Linux系统的深层解析,Linux系列专栏地址,欢迎小伙伴们订阅!🚀个人主页:大数 查看详情

linux系统之部署开源gocron定时任务管理系统

...n版本5.配置gocron-web服务6.启动gocron服务六、node01节点部署数据库1.安装maraidb数据库2.新建数据库3.设置数据库账号 查看详情

linux系统之部署mxsdoc个人文件管理系统(代码片段)

Linux系统之部署MxsDoc个人文件管理系统一、MxsDoc介绍1.MxsDoc简介2.MxsDoc功能3.MxsDoc应用场景二、检查本地系统环境1.检查系统版本2.检查系统内核三、下载MxsDoc软件包1.创建软件目录2.下载MxsDoc软件3.查看下载软件四、部署MxsDoc1.解压M... 查看详情

linux系统之openeuler安装部署(代码片段)

Linux系统之openEuler安装部署一、openEuler介绍1.openEuler简介2.openEuler的硬件要求①物理机的安装要求②虚拟机的安装要求二、下载openEuler系统镜像1.官方网址2.下载openEuler系统镜像三、虚拟机配置工作1.设置虚拟机名称2.处理器配置3.... 查看详情

linux系统之openeuler安装部署(代码片段)

Linux系统之openEuler安装部署一、openEuler介绍1.openEuler简介2.openEuler的硬件要求①物理机的安装要求②虚拟机的安装要求二、下载openEuler系统镜像1.官方网址2.下载openEuler系统镜像三、虚拟机配置工作1.设置虚拟机名称2.处理器配置3.... 查看详情

linux系统之部署个人导航页

...改settings.py文件五、部署导航页项目1.根据临时文件生成数据库表2.开始部署导航页六、访问导航页应用1.访问导航页首页2.访问导航页管理后台 查看详情

redis(代码片段)

NoSQL之Redis(一)(关系数据库与非关系数据库、Redis的简介、安装部署及常用工具)文章目录NoSQL之Redis(一)(关系数据库与非关系数据库、Redis的简介、安装部署及常用工具)关系数据库和非关... 查看详情

关于linux下redis自动化部署的一些笔记(代码片段)

...在前面分享一些安装redis的笔记博文内容涉及:通过源码编译和yum安装redisDemo通过二进制文件和systemd运行redis的配置方式服务管理,配置的文件的简单介绍ansibleredis角色ansible-role-redis编写通过ansible自动化安装理解不足小... 查看详情

devops利器之docker入门篇(代码片段)

...件,既可以是一个Web应用、一个编译环境,也可以是一套数据库平台服务,甚至是一个操作系统或集群。基于Linux平台上的多项开源技术,Docker提供了高效、敏捷和轻量级的容器方案,并支持部署到本地环境和多种主流云平台。... 查看详情

nosql之redis配置与优化(代码片段)

NoSQL之Redis配置与优化一、关系数据库和非关系数据库1.1关系型数据库1.2非关系型数据库1.3非关系型数据库的产生背景1.4关系型数据库和非关系型数据库区别二、Redis介绍三、Redis安装部署3.1Redis安装部署步骤(理论)3.2Redi... 查看详情

linux系统之cherokeeweb服务器的编译安装详细教程

Linux系统之CherokeeWeb服务器的编译安装详细教程一、Cherokee介绍二、检查本地系统环境1.检查系统版本2.检查系统内核版本三、新建用户1.新建用户2.查看用户信息四、下载Cherokee源码包1.创建下载目录2.安装相关依赖项3.下载Cherokee源... 查看详情

redis原理篇之网络模型(代码片段)

...启动源码分析图解用户空间和内核空间任何Linux发行版,其系统内核都是Linux。我们的应用都需要通过Lin 查看详情

redis源码剖析-redis之数据库redisdb(代码片段)

原创作品,转载请标明:http://blog.csdn.net/xiejingfa/article/details/51321282Redis源码剖析系列文章汇总:传送门今天,我们来讨论两点内容:一是Redis是如何存储类型对象的,二是Redis如何实现键的过期操作。本文... 查看详情