摘要: UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1; 讲root账户,的HOST设置为%,允许所有公网IP访问。 flush privileges; 刷新权限 grant all privileges on *.* to 'root' 阅读全文
posted @ 2018-05-28 17:49 编程让我快乐 阅读(352) 评论(0) 推荐(0) 编辑
摘要: firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload 阅读全文
posted @ 2018-05-28 17:06 编程让我快乐 阅读(387) 评论(0) 推荐(0) 编辑
摘要: yum install firewalld systemctl stop iptables; systemctl mask iptables; systemctl unmask firewalld systemctl start firewalld systemctl status firewall 阅读全文
posted @ 2018-05-28 15:47 编程让我快乐 阅读(176) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/pythonal/p/6141516.html 1.默认linux是有自己的数据库分支的,我们要现将其删除,不然会有冲突 运行: rpm -qa | grep mariadb 查看有哪些分支 运行: rpm -e --nodeps mariadb-li 阅读全文
posted @ 2018-05-28 14:45 编程让我快乐 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 在服务器端安装pm2 npm install npm2 -g --save 之后再项目目录下运行 pm2 start app.js 在查看进程,是否已经启动 pm2 list 多个项目,我们只要监听端口,让nginx去转发 在conf文件目录下在建一个.conf文件,写上配置文件即可 阅读全文
posted @ 2018-05-28 13:30 编程让我快乐 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 找到config文件夹下的index.js文件修改一下位置 看清楚是 build(上边还有个dev 是开发环境下的配置,不需要改动)下的 assetsPublicPath :将‘/’改为‘./’ 在css中写的background-img的路径出错 需要找到build文件夹下的utils.js,修改 阅读全文
posted @ 2018-05-28 10:02 编程让我快乐 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 首先在阿里云配置解析域名 指向端口为3200的nodejs服务,在nginx/conf.d下增加文件chat.conf,内容如下: 重启nginx 阅读全文
posted @ 2018-05-28 09:35 编程让我快乐 阅读(585) 评论(0) 推荐(0) 编辑