localhost

TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection clos

泪湿孤枕 提交于 2019-12-04 17:32:18
原因 1localhost有多个地址,引发监听冲突 2在linux中搭建的oracle没有监听配置,没有下面相应的文件 解决方法 问题1 localhost有多个地址,引发监听冲突 [oracle@localhost bin]$ cat /etc/hosts 127.0 .0 .1 localhost localhost .localdomain localhost4 localhost4 .localdomain 4 :: 1 localhost localhost .localdomain localhost6 localhost6 .localdomain 6 196.20 .1 .211 localhost dbserver 修改主机名 [oracle @localhost bin] $ hostname dbserver 修改hosts [oracle@localhost bin]$ vi /etc/hosts 127.0 .0 .1 localhost localhost .localdomain localhost4 localhost4 .localdomain 4 :: 1 localhost localhost .localdomain localhost6 localhost6 .localdomain 6 196.20 .1 .211 dbserver 修改

TNS-12537 TNS-12560 TNS-00507 Linux Error: 29: Illegal seek

你。 提交于 2019-12-04 17:31:27
今天在linux系统上启动oracle监听的时候报错: [oracle@localhost ~]$ lsnrctl start TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek 百思不得其解,然后在网上查找原因,初步确定是因为,配置文件中的hostname不对应,赶紧检查配置文件,还真是两个配置文件中的主机名对不上,修改hostname: 进入到root用户下:su - root [root@localhost ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 128.1.46.6 localhost [root@localhost ~]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain

How to Open a Windows Program with JavaScript?

别说谁变了你拦得住时间么 提交于 2019-12-04 17:12:21
So I'm trying to make a projects hub for Windows (run locally with Localhost) that will open different apps (e.g. a CAD program) at the click of a button. Is this insecure? If not, how would I do it? If so, is there an alternative? Thanks! A URI (Uniform Resource Identifier) will provide for the best user experience. A URI is a schema that can launch an application as well as pass data into the application. The most common example of a URI is the mailto: for launching a computer's mail client from a website. Creating a URI involves editing the registry. Here is some Microsoft Documentation on

MySQL is not found anywhere on computer

亡梦爱人 提交于 2019-12-04 17:00:52
I have recently installed MySQL directly from the website (mysql-5.7.9-osx10.10-x86_64.dmg) and I have run into a great deal of difficulty that started with trying to change the given password. The error that was returned was: [Warning] Using a password on the command line interface can be insecure. mysqladmin: connect to server at 'localhost' failed error: Can't connect to local MySQL server through socket '/tmp/mysql.sock (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! From here I attempted to find the "usr" folder (hidden files are showing) or even anything

寒叶笔记

扶醉桌前 提交于 2019-12-04 16:45:27
React 牵手 Express 仅仅有了 API ,功能还不完全。需要有前端来调用 API ,完成 整个小功能。 在我们《JS 独孤求败》课程体系里面,前端代码我们都是用 React 来写, 所以前端和后端都是用 JS 来写。但是这里要提醒大家的是,前端和后端是 完全独立 的两个项目,通过 API 来作为桥梁。其实,我们后端虽然是 Nodejs 写的,但是前端用 PHP/JAVA 也能写。 前端项目准备 前面的课程中,我们已经学习了 React 开发。那么先在就来写一个完全跟后台无关的 React 的 Hello World ,要求: 页面最终显示出来的,就是你的用户名,例如 luckyhanye 要用到 react 的 state ,constructor ,生命周期 用 ES6/Babel/Webpack 创建 React 应用的脚手架项目 可以推荐的是 https://github.com/facebookincubator/create-react-app 但是,我们需要对 Webpack 底层做一些了解,所以暂时不推荐使用 脚手架 小贴士结束 所有代码都放到 react-frontend 这个文件夹中,代码如下: src/index.js import React, { Component } from 'react'; import ReactDOM from

Web三大组件之控制器组件Servlet(转载)

▼魔方 西西 提交于 2019-12-04 16:21:42
Servlet: 主要用于处理客户端传来的请求,并返回响应 。 获取请求数据>处理请求>完成响应  过程: 客户端发送请求----HTTP服务器接收请求,HTTP服务器只负责解析静态HTML界面,其中包含Servlet的请求转交给Servlet容器-----容器再根据映射web.xml的映射关系,创建Servlet对象(转化为 HttpServletxxx对象 ),再调用相对应的Servlet的处理---把结果返回给Servlet容器,再通过HTTP服务器转给客户端。 HttpServlet功能 : 根据请求方式不同,doXxx方法处理用户请求。doGet()/doPost()等,可自定义----前端控制器。 service方法将Http的请求和响应分别转化为HttpServletRequest和HttpServletResponse类型的对象。 几个核心对象:       Servlet类继承HttpServlet接口或GenerivServlet抽象类   ServletConfig接口:其对象封装一个Servlet的辅助配置信息。   ServeltContext接口:其对象封装了当前web应用的所有信息,实现多个Servlet之间数据的共享。    作用:获取web应用程序的初始化参数。    实现多个servlet对象共享数据【域对象】。   读取web应用下的资源文件。

iPhone can not connect to local HTTP server over WiFi

坚强是说给别人听的谎言 提交于 2019-12-04 16:17:42
I can not open static HTML pages served from a HTTP server run on my MacBook in iPhone 6s iOS 9.2, neither in 'Safari' nor in 'Chrome' browser when using: http://ipNumberOfMyServer:portNumber I am able to open the pages on Android phones and I'm also able to open the pages if I turn MacBook's WiFi off and on, but if I change the page and refresh the browser, it again fails to load the page and says that server has stopped responding or that Safari could not connect to the server. Resetting network settings in iPhone didn't help, nor did turning off Cellular Data in iPhone settings. Any idea

mysql主从复制笔记

喜你入骨 提交于 2019-12-04 16:10:50
mysql主从复制笔记(2台阿里云服务器 centos系统 mysql版本最好一致)1 配置Master主服务器在Master MySQL上创建一个用户‘dog’,并允许其他Slave服务器可以通过远程访问Master,通过该用户读取二进制日志,实现数据同步。<pre>CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456';GRANT REPLICATION SLAVE ON *.* TO 'dog'@'localhost';</pre> ps:先localhost 然后再改成%, 然后从数据库登陆master数据库测试下 能不能连接上 2 找到MySQL安装文件夹修改my.cnf文件。mysql中有好几种日志方式,这不是今天的重点。我们只要启动二进制日志log-bin就ok。<pre>server-id=1 //给数据库服务的唯一标识,一般为大家设置服务器Ip的末尾号 这个地方要注意不能出现relay-loglog-bin=master-binlog-bin-index=master-bin.index</pre> 然后重启mysql 运行如下<pre>mysql> SHOW MASTER STATUS;+------------------+----------+--------------+------------------

ReactJS localhost Ajax call: No 'Access-Control-Allow-Origin' header

折月煮酒 提交于 2019-12-04 16:07:45
Working on the ReactJS tutorial I spinned up a local server with >npm install -g http-server >http-server -c-1 And got local server working fine located at http://localhost:8080 Though, when I attempted to use an AJAX call within one of my components, I got the following error in my chrome console: XMLHttpRequest cannot load http://localhost:8080/comment.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 405. This is the ajax call snippet: var CommentBox = React.createClass({

AirPlay messes up localhost

雨燕双飞 提交于 2019-12-04 15:26:50
问题 Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same: [31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0') [31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 - It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :) 回答1: I think I found the answer: On a cisco discovery forum