Update redis document.

This commit is contained in:
unknown 2018-05-28 17:11:06 +08:00
parent e850874db3
commit 8ba865bafa
1 changed files with 16 additions and 20 deletions

View File

@ -7,18 +7,11 @@
See Intel DPDK [linux_gsg](http://dpdk.org/doc/guides/linux_gsg/index.html) See Intel DPDK [linux_gsg](http://dpdk.org/doc/guides/linux_gsg/index.html)
## Clone F-Stack ## clone F-Stack
mkdir /data/f-stack mkdir /data/f-stack
git clone https://github.com/F-Stack/f-stack.git /data/f-stack git clone https://github.com/F-Stack/f-stack.git /data/f-stack
## Install libnuma-dev
# on Centos
yum install numactl-devel
# on Ubuntu
sudo apt-get install libnuma-dev
## Compile DPDK ## Compile DPDK
Read DPDK Quick Started Guide or run the command below Read DPDK Quick Started Guide or run the command below
@ -50,20 +43,20 @@ The mount point can be made permanent across reboots, by adding the following li
## offload NIC ## offload NIC
modprobe uio modprobe uio
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko
python dpdk-devbind.py --status python dpdk-devbind.py --status
ifconfig eth0 down ifconfig eth0 down
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0 python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0
## Compile lib ## Compile lib
export FF_PATH=/data/f-stack export FF_PATH=/data/f-stack
export FF_DPDK=/data/f-stack/dpdk/x86_64-native-linuxapp-gcc export FF_DPDK=/data/f-stack/dpdk/x86_64-native-linuxapp-gcc
cd ../../ cd ../../
cd lib cd lib
make make
### Compile Nginx ### Compile Nginx
@ -79,5 +72,8 @@ The mount point can be made permanent across reboots, by adding the following li
cd app/redis-3.2.8/ cd app/redis-3.2.8/
make make
make install # run with start.sh
./start.sh -b ./redis-server -o /path/to/redis.conf
# or run like this:
#./redis-server --conf=config.ini --proc-type=primary --proc-id=0 /path/to/redis.conf