Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
redis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
redis
Commits
c0fcfc10
Commit
c0fcfc10
authored
Feb 07, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed config: supervised by systemd and PID is stored at /run/redis/redis.pid
parent
dfc6911b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Makefile
Makefile
+2
-1
No files found.
Makefile
View file @
c0fcfc10
...
@@ -31,7 +31,8 @@ all: redis-service
...
@@ -31,7 +31,8 @@ all: redis-service
mkdir
-p
/etc/redis
mkdir
-p
/etc/redis
cp
redis-6.2.4/redis.conf /etc/redis/redis.conf
cp
redis-6.2.4/redis.conf /etc/redis/redis.conf
cp
redis-6.2.4/sentinel.conf /etc/redis/sentinel.conf
cp
redis-6.2.4/sentinel.conf /etc/redis/sentinel.conf
sed
-i
's/^supervised no/supervised systemd/'
/etc/redis/redis.conf
sed
-i
's/^# supervised auto/supervised systemd/'
/etc/redis/redis.conf
sed
-i
's/^pidfile .*/pidfile \/run\/redis\/redis.pid/'
/etc/redis/redis.conf
MAX
=
$$
(
ulimit
-Hn
)
&&
let
AVAIL
=
$$
MAX-32
&&
sed
-i
"s/^# maxclients.*/maxclients
$$
AVAIL/"
/etc/redis/redis.conf
MAX
=
$$
(
ulimit
-Hn
)
&&
let
AVAIL
=
$$
MAX-32
&&
sed
-i
"s/^# maxclients.*/maxclients
$$
AVAIL/"
/etc/redis/redis.conf
MAXCONN
=
$$
(
cat
/proc/sys/net/core/somaxconn
)
&&
sed
-i
"s/^tcp-backlog.*/tcp-backlog
$$
MAXCONN/"
/etc/redis/redis.conf
MAXCONN
=
$$
(
cat
/proc/sys/net/core/somaxconn
)
&&
sed
-i
"s/^tcp-backlog.*/tcp-backlog
$$
MAXCONN/"
/etc/redis/redis.conf
sed
-i
's|^dir .*|dir /var/lib/redis|'
/etc/redis/redis.conf
sed
-i
's|^dir .*|dir /var/lib/redis|'
/etc/redis/redis.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment