6380 ポートで、Redis を動かす。

/opt/redis/redis_6380.conf

/opt/redis/redis_6380.sh

	#! /bin/bash
	LOG_FILE="/tmp/redis_6380.log"
	redis-server /opt/redis/redis_6380.conf > $LOG_FILE
	
/etc/systemd/system/redis_6380.service

	[Unit]
	Description=redis server port 6380
	After=netctl@profile.service

	[Service]
	ExecStart=/opt/redis/redis_6380.sh
	Type=simple

	[Install]
	WantedBy=multi-user.target
	
サービスの起動

# systemctl start redis_6380



Return

Jun/29/2017 AM 08:25