localhost

manageApi

ⅰ亾dé卋堺 提交于 2019-12-04 06:39:05
目录 User Department Club Root User 1. 注册 请求头: Content-Type:application/json; URL: " http://localhost:8080/manage/admin_User_register " 请求参数: uid, phone, uname, IDCard, faculty, className, heardImg, password, sex { "uid":"201731104180", "phone":"13477178888", "uname":"ZhangYu", "IDCard":"421087199999999999", "faculty":"Computer", "className":"Software1701", "heardImg":"https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075456%E5%A3%81%E7%BA%B82.jpeg", "password":"123456", "sex":"female" } 返回参数 { "flag": "true" } 2. 登陆 学号和密码进行登陆 URL: " http://localhost:8080/manage/admin_User_login "

Localhost Server Refusing Connection

☆樱花仙子☆ 提交于 2019-12-04 06:26:10
I just set up Django on a dreamhost server. Ran through everything, but can't seem to get the welcome page. I got to the point where it says "Development server is running at 127.0.0.1:8002 (tried with 8000 but got the "that port is already in use error). When I try to access that address in my browser in Chrome I get Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection. Any idea why this is happening? I am stuck in a loop, I have no clue what is going on. Help is sincerely appreciated. You need to know your server's IP or domain address. If you used example.com to access

MySQL 1130错误,无法远程连接

痞子三分冷 提交于 2019-12-04 06:24:23
错误:ERROR 1130: Host '192.168.1.3' is not allowed to connect to thisMySQL serve 错误1130:主机192.168.1.3”不允许连接到thismysql服务 原因:被连接的数据不允许使用 192.168.1.3访问,只允许是用 localhost; 解决办法: 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改"mysql" 数据库里的 "user" 表里的 "host"项,从"localhost"改称"%" 1、启用 cmd 输入 : mysql -u -root -p 若是提示 ‘mysql’不是内部或外部命令,也不是可运行的程序.那需要配置环境变量 . 总体运行语句: mysql -u root -p mysql>use mysql; mysql>select 'host' from user where user='root'; mysql>update user set host = '%' where user ='root'; mysql>flush privileges; mysql>select 'host' from user where user='root'; 运行完毕后再次连接测试

Kafka总结

妖精的绣舞 提交于 2019-12-04 06:22:34
一、安装&启动 在 Kafka官网 下载安装包 kafka_2.11-1.0.0.tgz ## 解压 tar zxvf kafka_2.11-1.0.0.tgz ## 启动内置的zookeeper .bin/zookeeper-server-start.sh ../config/zookeeper.properties ## 启动kafka ./bin/kafka-server-start.sh ../config/server.properties 二、终端命令 创建主题 ./kafka-topics.sh --create --zookeeper localhost:2181 --topic test --partitions 1 --replication-factor 1 查看主题 ./kafka-topics.sh --describe --zookeeper localhost:2181 --topic test 生产消息 ./kafka-console-producer.sh --broker-list localhost:9092 --topic test 消费消息 ./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning 三、客户端连接 1

kibana使用

时光怂恿深爱的人放手 提交于 2019-12-04 06:21:30
Kibana是一个开源的分析与可视化平台,设计出来用于和Elasticsearch一起使用的。 可以用kibana搜索、查看存放在Elasticsearch中的数据。 Kibana与Elasticsearch的交互方式是各种不同的图表、表格、地图等,直观的展示数据,从而达到高级的数据分析与可视化的目的。 1.下载   地址 https://www.elastic.co/cn/downloads/kibana 2.启动   解压,进入bin目录,执行 kibana 浏览器打开http://localhost:5601 3.使用 (1)插入两条数据 curl -XPOST 'localhost:9200/store/category/1?pretty' -H 'Content-type:application/json' -d'{"name":"soap","type":"cleaning","postDate":"2019-9-15","message":"this is a first data"}' curl -XPOST 'localhost:9200/store/category/2?pretty' -H 'Content-type:application/json' -d'{"name":"soap1","type":"cleaning","postDate":"2019

使用uwsgi和nginx部署django应用

拥有回忆 提交于 2019-12-04 06:06:35
概述 文章是 uwsgi关于django部署 的学习笔记,过程中涉及: 浏览器 nginx服务器 linux socket uwsgi服务 django应用 最终各个组件之间的关系是 浏览器 <-> nginx服务器 <-> linux socket <-> uwsgi服务 <-> Django应用 当浏览器访问web页面时,如果请求的是静态文件,或者是纯粹html代码是直接从nginx服务器读取就可以了 当请求的是django应用中内容的话,浏览器发生请求时,经过nginx服务器的中转,将请求交给uwsgi进行处理,而uwsgi最终调用django中的具体处理函数进行处理,得到响应,一层层返回给浏览器 验证uwsgi和python之间的交互 首先,创建一个test.py文件用来处理来自浏览器的请求,内容如下: # test.py def application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) return [b"Hello World"] # python3 #return ["Hello World"] # python2 其次,启动uwsgi,并指定test.py进行请求处理 uwsgi --http :8000 --wsgi-file test.py

What is the easiest and quickest method to deploy a Laravel web application live? [closed]

爷,独闯天下 提交于 2019-12-04 06:06:21
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . After finishing a Laravel website, I realized it doesn't work like work like WordPress, where you can deploy it directly from localhost to live server. How do I do it? 回答1: Here's how you can deploy your laravel site to different kinds of hostings: Shared Hosting: First, it is

推荐一款Diffy:Twitter的开源自动化测试工具

♀尐吖头ヾ 提交于 2019-12-04 06:00:22
1. Diffy是什么 Diffy是一个开源的自动化测试工具, 是一种Diff测试技术。 它能够自动检测基于Apache Thrift或者基于HTTP的服务。通过同时运行新/老代码,对比运行结果,发现潜在bug。使用Diffy,只需要进行简单的配置,之后不需要再编写测试代码。 2. Diffy主要为了解决什么问题 一个项目,从第一个版本发布到形成一个相对完善的版本,再到后面的重大更新甚至重构,需要经过许多版本的迭代。 而随着项目的迭代,产品功能不断增加, 项目会变得越来越复杂 。在后期,每修改增加的功能相对上一版本已存在功能的比例却是越来越小。但每一次或大或小的版本升级,我们都需要保证新增或修改的功能不影响上一版本已存在的功能。但要达到这一点却是困难异常,哪怕只改了一行代码、哪怕这项更改由非常优秀的开发者完成, 我们都很难保证这项功能对上一版本的功能无任何影响。 要保证每次上线的安全,我们需要开发和测试完成两项工作。一是,开发者在增加或变动某项新功能后,补充相应的测试用例,但写过单元测试的同学都知道,完成一个单元测试用例所花费的时间可能比完成相应功能花费的时间更多得多。 大多情况只能写几个核心的测试用例,而在人员不足,时间紧张的情况下,则更是难上加难了。在后期,因为功能在不断增加,回归测试的工作量越来越大,同时因为是回归,可能几百甚至上千用例中才会发现一个问题,甚至一个问题也没有

PHPStorm: Open in Browser option: How to set default server to open?

时间秒杀一切 提交于 2019-12-04 05:58:45
For PHPStorm, I have opened a project/site at location C:\site. Then, I went ahead and added a built in PHP Webserver at localhost port 8081 from the Menu Bar: Run > Edit Configurations. To view index.php file, when I click on View > Open in Browser > Chrome (or any other browser), it takes me to http://localhost:63342/site/index.php So, looks like it created another server running at port 63342? Also, it has the path as /site/index.php instead of just /index.php. Is there a way to configure so that when I click view > open in browser > browser_name, it will take to localhost:8081/index.php?

Difference between Localhost and opening html file

不羁的心 提交于 2019-12-04 05:33:27
What is the fundamental difference running a file using a server in localhost, and opening a file such as file:///Users/$user_name/$your_directory/index.html , assuming no backend is used, and it is only frontend and contains html/css/js How does this also affect interactions with other server ie. ajax requests? I am sorry if this is too broad, but I haven't found a solid answer to these underlying questions. Fundamentally, assuming at some point you're going to host the result on an actual web server, the former matches the target environment while the latter doesn't. Browsers treat local