redis 命令.txt

    启动:redis-server
    后台启动:redis-server &
    关闭客户端: redis-cli shutdown
    查看启动:ps -ef | grep redis
    # 停止Redis命令
    redis-cli shutdown

    redis-server /usr/local/redis-6.0.6/redis.conf
    https://www.jianshu.com/p/bb7c19c5fc47

    安装
    brew install redis
    Redis 分服务端和客户端,此命令会将两个都安装好

    配置
    开机启动
    brew services start redis

    配置文件
    /usr/local/etc/redis.conf

    编辑配置文件 配置后台运行
    daemonize yes

    服务端启动及查看
    redis-server /usr/local/etc/redis.conf
    ps aux | grep redis

    客户端调用
    redis-cli

    给redis设置密码
    打开redis.conf文件,找到以下配置项
    # requirepass foobared
    更改为
    requirepass 你的密码
    注意:由于上诉操作更改了redis.conf文件,所以下次再启动的时候,要手动加载一下redis.conf文件。例如
    进入到redis根目录,启动如下
    redis-server /usr/local/etc/redis.conf

    连接redis redis-cli
    1、列举所有keys,查看缓存整体结构

    keys *

    2、查看某一个key 的类型,以便于使用对应的命令

    type key

    3、对于hash类型,获取所有哈希表中的字段

    hkeys key

    4、获取存储在哈希表中指定字段的值

    hget key field

    5、为哈希表中的字段赋值 ,存在则覆盖,不存在在创建并赋值

    hset key filed value

    6、删除哈希表 key 中的一个或多个指定字段,不存在的字段将被忽略。

    hdel key filed1

    .local、169.254/16
    **
    How to start the SoftEther VPN Client Service *
    Please execute ‘./vpnclient start’ to run the SoftEther VPN Client Background Service.
    And please execute ‘./vpncmd’ to run the SoftEther VPN Command-Line Utility to configure SoftEther VPN Client.

    Of course, you can use the VPN Server Manager GUI Application for Windows / Mac OS X on the other Windows / Mac OS X computers in order to configure the SoftEther VPN Client remotely.

    For Windows users
    You can download the SoftEther VPN Server Manager for Windows
    from the http://www.softether-download.com/ web site.
    This manager application helps you to completely and easily manage the VPN server services running in remote hosts.

    For Mac OS X users
    In April 2016 we released the SoftEther VPN Server Manager for Mac OS X.
    You can download it from the http://www.softether-download.com/ web site.
    VPN Server Manager for Mac OS X works perfectly as same as the traditional Windows versions. It helps you to completely and easily manage the VPN server services running in remote hosts.

    PacketiX VPN Server HTML5 Web Administration Console (NEW)
    This VPN Server / Bridge has the built-in HTML5 Web Administration Console.

    After you start the server daemon, you can open the HTML5 Web Administration Console is available at

    https://127.0.0.1:5555/
    or
    https://ip_address_of_the_vpn_server:5555/

    This HTML5 page is obviously under construction, and your HTML5 development contribution is very appreciated.