Centos7 install SSDB Service
1. Install the SSDB service: 1. Install the SSDB service/usr/local/ssdbBelow:
cd /usr/local/git clone https://github.com/ideawu/ssdb.gitcd ssdbmakesudo make installln -sf /usr/local/ssdb/ssdb-server /usr/local/bin/ssdb-serverln -sf /usr/local/ssdb/tools/ssdb-cli /usr/local/bin/ssdb-cliln -sf /usr/local/ssdb/tools/ssdb-dump /usr/local/bin/ssdb-dumpln -sf /usr/local/ssdb/tools/ssdb-repair /usr/local/bin/ssdb-repair
2. Start the SSDB service in the background:
/usr/local/ssdb/ssdb-server -d /usr/local/ssdb/ssdb.conf
Use ssdb-cli:
/usr/local/ssdb/ssdb-cli -p 8888
3. Stop the SSDB service:
/usr/local/ssdb/ssdb-server /usr/local/ssdb/ssdb.conf -s stop
4. Start SSDB at startup:
① Modify a fileWrite code snippets hereIn configs, Set/data/ssdb_data/test/ssdb.confModify the path of your SSDB configuration file. If you have multiple SSDB instances, write them in one line and separate them with spaces. For example:
configs="/usr/local/ssdb/ssdb.conf"
② Add the ssdb service and set the start time:
ln -sf /usr/local/ssdb/tools/ssdb.sh /etc/rc.d/init.d/ssdbsudo chkconfig --add ssdbsudo chkconfig ssdb on
Ii. Client usage:
For details about how to use the client, see SSDB.
3. install PHP's SSDB management tool: phpssdbadmin
For details, see GitHub: phpssdbadmin;