拉取镜像 docker pull redis:4.0 在主机/data/redis/conf目录下新建redis.conf文件vim /data/redis/conf/redis.conf # Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: #
官网地址: http://python-eve.org/ 配合mongodb进行crud使用起来很方便,但是部署的时候遇到一个问题,按照官网和Deom说的,servername使用 '127.0.0.1:5000'来部署,是只能在本机访问,如果想要 让局域网或者外网访问的话,需要做如下设置.(坑那...) 在setting.py中,把SERVER_NAME 改成如下: SERVER_NAME = None 然后在启动eve的地方 改成如下: from eve import Eve app = E
Ubuntu Mysql开通外网访问权限 1.编辑 my.cnf 文件: sudo vi /etc/mysql/my.cnf 2.将绑定地址行注释掉或者修改为指定 IP #bind-address = 127.0.0.1 3.登录 MySQL: mysql -uroot -p密码 4.添加 root 用户访问权限 grant all privileges on *.* to 'root'@'%' identified by '密码'; flush privileges; 5.