Hi,
This is my first Ipost I'm running FreeBSD 10.3-RELEASE-p7 as jails host using sysutils/ezjail this week I am starting deploy database/redis 3.2.4 on dedicated jail but when I start redis-server
Redis throw this warning:
when I execute redis-cli(1) command to check the connection I found that redis use 127.0.0.1 instead of 127.0.0.4 already define in the /etc/hosts file.
available network interfaces :
I succeed to start redis-server on not jailed machine but I don't know how to resolve this problem from inside the jail.
I need you help, thank you.
This is my first Ipost I'm running FreeBSD 10.3-RELEASE-p7 as jails host using sysutils/ezjail this week I am starting deploy database/redis 3.2.4 on dedicated jail but when I start redis-server
# redis-server /usr/local/etc/redis.conf && redis-server
Redis throw this warning:
Code:
55295:C 19 Oct 10:57:17.749 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
55295:M 19 Oct 10:57:17.755 # Creating Server TCP listening socket *:6379: bind: Address already in use
# cat /usr/local/etc/ezjail/redis
Code:
export jail_redis_hostname="redis"
export jail_redis_ip="lo4|127.0.0.4,bge0|192.168.1.226"
export jail_redis_rootdir="/usr/jails/redis"
export jail_redis_exec_start="/bin/sh /etc/rc"
export jail_redis_exec_stop=""
export jail_redis_mount_enable="YES"
export jail_redis_devfs_enable="YES"
export jail_redis_devfs_ruleset="devfsrules_jail"
export jail_redis_procfs_enable="YES"
export jail_redis_fdescfs_enable="YES"
export jail_redis_image=""
export jail_redis_imagetype="zfs"
export jail_redis_attachparams=""
export jail_redis_attachblocking=""
export jail_redis_forceblocking=""
export jail_redis_zfs_datasets=""
export jail_redis_cpuset=""
export jail_redis_fib=""
export jail_redis_parentzfs="zroot/jails"
export jail_redis_parameters=""
export jail_redis_post_start_script=""
export jail_redis_retention_policy=""
when I execute redis-cli(1) command to check the connection I found that redis use 127.0.0.1 instead of 127.0.0.4 already define in the /etc/hosts file.
# redis-cli ping
Code:
Could not connect to Redis at 127.0.0.1:6379: Connection refused
available network interfaces :
Code:
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:1e:c9:31:12:57
inet 192.168.1.226 netmask 0xffffffff broadcast 192.168.1.226
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
lo4: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.4 netmask 0xffffffff
run0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether e8:4e:06:1b:65:12
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
lo2: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
lo3: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
I succeed to start redis-server on not jailed machine but I don't know how to resolve this problem from inside the jail.
I need you help, thank you.