localhost

mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题

放肆的年华 提交于 2019-12-01 13:00:26
mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题 提示意思是不能用grant创建用户,mysql8.0以前的版本可以使用grant在授权的时候隐式的创建用户,8.0以后已经不支持,所以必须先创建用户,然后再授权,命令如下: mysql> create user 'zabbix'@'localhost' IDENTIFIED BY '111111'; Query OK, 0 rows affected (0.04 sec) mysql> grant all privileges on *.* to 'zabbix'@'localhost' ; Query OK, 0 rows affected (0.03 sec) 另外,如果远程连接的时候报plugin caching_sha2_password could not be loaded这个错误,可以尝试修改密码加密插件: mysql> alter user 'zabbix'@'localhost' identified with mysql_native_password by '111111'; 提示意思是不能用grant创建用户,mysql8.0以前的版本可以使用grant在授权的时候隐式的创建用户,8.0以后已经不支持,所以必须先创建用户

Flash - HTTP requests won't work on localhost

爷,独闯天下 提交于 2019-12-01 12:59:36
问题 First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my first post and I will try to add more info. I have a flash application hosted on-line that acts as a client for a server application written in Delphi. Most of

CentOS 7下安装vncserver并使用vnc-viewer进行登录

谁说胖子不能爱 提交于 2019-12-01 12:53:16
CentOS 7下安装vncserver并使用vnc-viewer进行登录 时间: 2017-12-07 00:46 来源: www.cnblogs.com 作者: 弹指神通通通通 举报 点击: 169次 CentOS安装使用vnc进行远程桌面登录 以下介绍在CentOS 7下安装vncserver并使用vnc-viewer进行登录(使用root权限): 1、运行命令yum install tigervnc-server安装vncserver; 2、运行命令yum install vnc安装vnc;//感觉不安装也可以,安装一下也很快,不要在意这些细节 3、运行命令yum groupinstall "X Window System"安装X-Window;//之前安装发现经常无法启动vncserver,后面通过网上查资料介绍可以安装X-Window解决这个 问题 4、安装中文字符以解决界面中文乱码的问题:yum install dejavu-lgc-sans-fonts、yum groupinstall "Fonts" -y 5、禁用防火墙,如果已经禁用防火墙可以跳过这一步:systemctl stop firewalld.service、systemctl disable firewalld.service 6、配置vncserver: 拷贝创建一个新的配置文件,以开启1号窗口为例

Nginx与uWSGI交互

廉价感情. 提交于 2019-12-01 12:06:12
1. 更改uwsgi的配置文件uwsgi.ini [uwsgi] ... #使用nginx连接时, 监控地址 socket=127.0.0.1:8080 #直接做web服务器时, 所监控地址 #http=127.0.0.1:8080 2. 在nginx配置文件中的路由模块添加uwsgi支持. sudo vim /usr/local/nginx/conf/nginx.conf 更改server模块. server { listen 80; server_name localhost; location / { include uwsgi_params; uwsgi_pass localhost:8080; } nginx配置全文: 1 worker_processes 1; 2 events { 3 worker_connections 1024; 4 } 5 http { 6 include mime.types; 7 default_type application/octet-stream; 8 sendfile on; 9 keepalive_timeout 65; 10 11 server { 12 listen 80; 13 server_name localhost; 14 15 location / { 16 include uwsgi_params; 17

MySQL新特性文档型数据库

↘锁芯ラ 提交于 2019-12-01 11:58:55
mongodb在文档型数据库这方面一直做的很好,也发展了很多年,MySQL作为一个比较大众的数据库也慢慢支持了该特性,下面介绍一下MySQL支持文档型数据库的简单操作。 环境: 主机名 IP 系统 软件 master 192.168.91.46 RHEL MYSQL8.0.17/mysqlsh Ver 8.0.17 [root@master ~]# mysqlsh --mysqlx -u root -pkavl7kAkkle! --file /opt/world_x-db/world_x.sql WARNING: Using a password on the command line interface can be insecure. 建立schema Records: 4079 Duplicates: 0 Warnings: 0 Records: 239 Duplicates: 0 Warnings: 0 Records: 239 Duplicates: 0 Warnings: 0 Records: 984 Duplicates: 0 Warnings: 0 进入库中: [root@master ~]# mysqlsh --mysqlx -u root -pkavl7kAkkle! --database world_x MySQL Shell 8.0.17 Copyright

curl指令学习小结

冷暖自知 提交于 2019-12-01 11:55:58
curl GET 请求 curl 命令 + 请求接口的地址。 curl localhost:8080/api/article curl POST 请求 我们可以用 -X POST 来申明我们的请求方法,用 -d 参数,来传送我们的参数。 -H 参数来申明请求的 header curl -X POST -d "id=1" l ocalhost:8080/api/article curl -X POST -H "Content-Type:application/json" -d '"id ":"1 " localhost:8080/api/article curl POST 上传文件 上面的两种请求,都是只传输字符串,我们在测试上传接口的时候,会要求传输文件,其实这个对于 curl 来说,也是小菜一碟。 我们用 -F "file=@__FILE_PATH__" 的请示,传输文件即可。命令如下: curl localhost: 8000/api/upload -F "file=@/Users/scc/Downloads/test.png" -H "token: 1111111" -v 更多 curl 的使用方法,以及参数说明,可以在系统中输入 man curl 来进行查看。 来源: https://www.cnblogs.com/shichangchun/p/11684317.html

ubuntu安装本地kafka

故事扮演 提交于 2019-12-01 11:41:16
1.下载kafka_2.11-1.0.0.tgz http://kafka.apache.org/downloads 解压 tar -zxvf kafka_2.11-2.3.0.tgz cd kafka_2.11-2.3.0 2.启动服务器 需要先启动ZooKeeper,kafka内置提供了一个ZooKeeper服务器以及一组相关的管理脚本,使用内置的ZooKeeper即可: bin/zookeeper-server-start.sh config/zookeeper.properties 出现INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory)表示ZooKeeper已经成功地在端口2181上启动了。 启动Kafka服务器: 需要在/config/server.properties上添加: advertised.host.name=10.10.15.14 再执行kafka启动命令: bin/kafka-server-start.sh config/server.properties 控制台输出INFO [KafkaServer id=0] started (kafka.server.KafkaServer)表示Kafka服务器启动成功

SVG not working when access on localhost. Why?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 11:28:56
问题 Does anybody know why the same code from this page http://emacsformacosx.com/ would not render when hosted on a local tomcat server? I am trying to play with some SVG but can't see to make it work locally. Any ideas? 回答1: The page is XHTML, so it should be served with an appropriate Content-Type header. If the page is served as text/html, then Firefox and Chrome (the only two I've checked in) won't recognise the XML namespaces necessary for the SVG to work. Although the live page is being

Script works in localhost but not on server

左心房为你撑大大i 提交于 2019-12-01 11:17:05
问题 I have this problem where a code is working on localhost but not when I upload it to the server. I want to implement this: Polaroid Photobar Gallery Here's a link to my website: Zodiac 2013 Note: You need to go the gallery tab to view it. EDIT: Please view it in Google Chrome for best viewing experience. I tried using FireBug but to no help. With the Inspect Element feature of google chrome, I figured out that the server didn't accept the javascript code written inside the document . The code

UDP from AndroidEmulator (--Genymotion--) to localhost Server(10.0.2.2) does not work?

拥有回忆 提交于 2019-12-01 11:01:39
I simply try to send and receive data between MonodroidApp(AndroidEmulator) and a localDevServer. I understand localhost is specially mapped to "10.0.2.2" on AndroidEmulator, so I did the following, but the app does not respond. System.Text.Encoding enc = System.Text.Encoding.UTF8; string sendMsg = "testtest"; byte[] sendBytes = enc.GetBytes(sendMsg); int localPort = 39000; var udp = new System.Net.Sockets.UdpClient(localPort); //send data string remoteHost = "10.0.2.2";//"127.0.0.1"; int remotePort = 15000; udp.Send(sendBytes, sendBytes.Length, remoteHost, remotePort); //receive data System