localhost

guzzle exception with .localhost domains

元气小坏坏 提交于 2019-12-24 10:11:03
问题 On my local machine I have two services (in laravel 5): userBox and mailBox. mailBox use userBox during login using library "guzzlehttp/guzzle": "~6.0" and restful API (mailBox send user credential and get info do user exists and have proper access). After .dev subdomains stopps working I decide to use .localhost subdomain so i have: userbox.localhost mailbox.localhost I make changes in /etc/apache2/extra/httpd-vhosts.conf but unfortunatley I get error: cURL error 6: Could not resolve host:

Android local RTSP server (spoof), PVPlayer closes TCP socket after DESCRIBE reply sent

风流意气都作罢 提交于 2019-12-24 08:05:55
问题 I'm trying to "spoof" the android player. I want MediaPlayer (I'm using the VideoView wrapper) to connect to localhost so that I may reply to its RTSP requests. The application works fine when the underlying video system is the VisualOn type (VOME) however any device which uses the PacketView system (PVPlayer) the TCP connection is closed after I send the reply to the DESCRIBE request/challenge. I know for a fact the reply is not the issue. When I take the exact code (generating the same

grunt-contrib-connect works only with keepalive

[亡魂溺海] 提交于 2019-12-24 04:49:06
问题 Something strange happens, when I try to connect to server. There are no errors in terminal, it says "Started connect web server on http://0.0.0.0:5555" , then done without errors. But when I serf to http://localhost:5555/ - I get typical "page not found". In chrome console one warning and one error: i18n-values: Missing value for "primaryParagraph" http://localhost:5555/:1 GET http://localhost:5555/ net::ERR_CONNECTION_REFUSED The more surprising is that when I define keepalive:true

When try to execute a cgi script, get the error: “[WinError 193] %1 is not a valid Win32 application”

泪湿孤枕 提交于 2019-12-24 04:29:08
问题 When I try to execute a cgi script (via a localhost), I get the following error OSError: [WinError 193] %1 is not a valid Win32 application Any ideas why ?? Completely lost... . Additional Information: The localhost is generated by the following python -m http.server --cgi 8000 The cgi script is called by an ajax 'get' request (simplified) ajax({ type: "GET", url: "cgi-bin/myScript.cgi", onSuccess: function(html){ //do stuff } }); I have tested to check whether it's the contents of the cgi

mysql安装和操作

巧了我就是萌 提交于 2019-12-24 04:06:38
1.install:   下载地址:https://dev.mysql.com/downloads/ 2.下载zip包解压:    3.自己在该文件夹下创建 my.ini,并编辑内容:    [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设置3306端口 port = 3306 # 设置mysql的安装目录 basedir=your install route\mysql-8.0.12-winx64 # 设置mysql数据库的数据的存放目录 datadir=your route\sqldata # 允许最大连接数 max_connections=20 # 服务端使用的字符集默认为8比特编码的latin1字符集 character-set-server=utf8 # 创建新表时将使用的默认存储引擎 default-storage-engine=INNODB   这里的your route 和your install route 需要用自己的安装地址和设置地址来代替。   我的放在D盘,就是: [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设置3306端口 port = 3306 # 设置mysql的安装目录 basedir

beego配置文件

 ̄綄美尐妖づ 提交于 2019-12-24 01:27:13
关于App配置: #App配置 for Api AppName = ApiService RunMode = dev RouterCaseSensitive = true ServerName = ApiService RecoverPanic = true CopyRequestBody = true EnableGzip = false MaxMemory = 1 << 26 EnableErrorsShow = true EnableErrorsRender = false AppName 应用名称,通过 bee new 创建的项目名 AppName = beego beego.BConfig.AppName = "beego" RunMode 可选 prod 、 dev 、 test 。默认 dev 为开发模式有日志打印, prod 会关闭日志的打印, test 测试模式还没用过 RunMode = dev beego.BConfig.RunMode = "dev" RouterCaseSensitive 路由忽略大小写匹配,默认为true,意思是不需要刻意配置 RouterCaseSensitive = true beego.BConfig.RouterCaseSensitive = true ServerName beego 服务器默认在请求的时候输出 server 为

mysql重置root@localhost用户密码

你说的曾经没有我的故事 提交于 2019-12-24 01:07:53
mysql重置root@localhost用户密码 第一步:修改my.cnf配置文件 注意以实际实例用户替换mysql su - mysql 具体cd到my.cnf实际路径下面 vi my.cnf [mysqld] #新加下面参数 skip-grants-tables #如果涉及下面参数,请同步注释 #rpl_semi_sync_master_enabled =ON #rpl_semi_sync_slave_enabled =ON wq! 重启数据库 第二步:重置root@localhost密码 su - mysql mysql --此时不再需要输入密码,直接进入数据库 5.7之前版本 “*******” 代表新密码 update mysql.user set password=password("********") where user=‘root’ and host =‘localhost’; flush privileges; quit 5.7之后版本 “*******” 代表新密码 update mysql.user setauthentication_string=password("********") where user=‘root’ and host =‘localhost’; flush privileges; quit 第三步:恢复到重置密码前的my

File not found - http://localhost/path-file-script-or-image

谁说胖子不能爱 提交于 2019-12-24 00:49:51
问题 When I visit my node application running on my raspberry pi at 10.0.my.ip.address the app loads but get 404 multiple files not found. The src to my files, scripts and images look similar to this <link rel="stylesheet" href="http://localhost/Ziroid_Functions/Clovis_App/public/clovisapp.css"> <img src="http://localhost/Ziroid_Functions/Clovis_App/public/img/doubleUp.png" alt="Smiley face" > <script type="text/javascript" src="http://localhost/Ziroid_Functions/Clovis_App/public/js/radar.js"><

Server displaying text instead of HTML

ε祈祈猫儿з 提交于 2019-12-23 22:15:49
问题 I'm attempting to make a C server that will take inputs and be able to spit them back out to the user via html format where the server works as a user interface. My current issue I cant seem to figure out is why the C server spits out the HTML code as text at localhost:3838 instead of displaying it as a proper web page. How can I solve this and have it be able to work to send user commands back to the server and spit out the proper response? Do I do this by using recieve and then putting the

zookeeper3.4.12安装

我只是一个虾纸丫 提交于 2019-12-23 20:48:28
安装 下载地址 https://apache.org/dist/zookeeper/ 1、解压 tar -zxvf zookeeper-3.4.12.tar.gz 2、更改配置文件 cd conf mv zoo_sample.cfg zoo.cfg data目录和logs目录默认是没有的,需要自己预先建立好 vim zoo.cfg # 存放数据的目录 dataDir=/usr/local/zookeeper-3.4.12/data # the port at which the clients will connect clientPort=2181 # 存放日志 dataLogDir=/usr/local/zookeeper-3.4.12/logs #zookeeper机器列表,server.order这里的Order依据集群的机器个数依次递增 server.1=master:2888:3888 server.2=node1:2888:3888 server.3=node2:2888:3888 3、在data目录新建myid文件 [root@master zookeeper-3.4.12]# cd data/ [root@master data]# vim myid 在myid文件中master写1,node1写2,node2写3,这里的1、2、3要和zoo