localhost

第7章 DNS & bind从基础到深入

不打扰是莪最后的温柔 提交于 2019-12-01 09:07:09
转载请务必在文章最开头标明原文地址 本文原创地址:骏马金龙 https://www.cnblogs.com/f-ck-need-u/p/7367503.html#auto_id_0 本人博客搬家: 骏马金龙www.junmajinlong.com 基础服务类系列文章: http://www.cnblogs.com/f-ck-need-u/p/7048359.html DNS是Domain name system的简称,有些地方也称为Domain name server,这东西是一个很大的话题。如果不是要配置DNS服务,只需要理解DNS的解析流程和DNS有关的基本知识即可。如果要配置DNS服务,则可以看完全文。 推荐阅读书籍:《DNS & bind》,第四版有中文版,第五版目前只有英文版。 7.1 DNS必懂基础 DNS主要是用于将域名解析为IP地址的协议,有时候也用于将IP地址反向解析成域名,所以DNS可以实现双向解析。 DNS可以使用TCP和UDP的53端口,基本使用UDP协议的53端口。 7.1.1 域的分类 域是分层管理的,就像中国的行政级别。 最高层的域是根域(root)".",就是一个点,它就像国家主席一样。全球只有13个根域服务器,基本上都在美国,中国一台根域服务器都没有。 根域的下一层就是第二层次的顶级域(TLD)了,那么它就是各省省长了。顶级域一般两种划分方法

SignalR Server Hosting Localhost

一个人想着一个人 提交于 2019-12-01 09:05:57
I'm running a server with a localhost http://*:52080 . On the same computer, I'm run client and trying to connect to a local IP hub http://192.168.1.102:52080/signalr . Everything works well. But if I run the client on another computer (from the same local network) and try to connect to http://192.168.1.102:52080/signalr , it does not connect. The client catches an exception ( "System.AggregateException" in mscorlib.dll ). Port 52080 on the computer with the hub is open. What could be the reason for the failure? Server: using System; using Microsoft.Owin.Hosting; public class Program { static

http协议

你说的曾经没有我的故事 提交于 2019-12-01 09:04:27
http请求协议 请求首行; // 请求方式 请求路径 协议和版本,例如:GET /index.html HTTP/1.1 请求头信息;// 请求头名称:请求头内容,即为key:value格式,例如:Host:localhost 空行; // 用来与请求体分隔开 请求体。 // GET没有请求体,只有POST有请求体。 Get请求: HTTP默认的请求方法就是GET * 没有请求体 * 数据必须在1K之内! * GET请求数据会暴露在浏览器的地址栏中 地址栏中直接输入url 点击页面上的超链接 form表单默认使get请求    Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding:gzip, deflate, sdch # 压缩格式 Accept-Language:zh-CN,zh;q=0.8 # 语言 Cache-Control:no-cache # 缓存 Connection:keep-alive Cookie:csrftoken=z5H43ZwARx7AIJ82OEizBOWbsAQA2LPk Host:127.0.0.1:8090 Pragma:no-cache Upgrade-Insecure-Requests:1 User

Can PHP be installed on a local machine?

a 夏天 提交于 2019-12-01 08:42:17
问题 For Web-dev, can the PHP Processor be installed on a regular Windows XP machine, such that viewing PHP files through a browser executes the PHP script? (NOT Windows Server 2003) I even downloaded PHP but it appears they want it installed on a server. Any other ways to quickly preview and run PHP on a local machine WITHOUT uploading the file to server? (Dreamweaver can process the static HTML within PHP files..) 回答1: I suggest: http://www.wampserver.com/en/ or http://www.apachefriends.org/en

使用python操作mysql数据库

ぃ、小莉子 提交于 2019-12-01 08:04:02
使用python操作mysql数据库 数据库的安装和连接 PyMySQL的安装 pip install PyMySQL python连接数据库 import pymysql db = pymysql.connect("数据库ip","用户","密码","数据库" ) # 打开数据库连接 cursor.execute("SELECT VERSION()") # 使用 execute() 方法执行 SQL 查询 data = cursor.fetchone() # 使用 fetchone() 方法获取单条数据 print ("Database version : %s " % data) db.close() # 关闭数据库连接 import pymysql conn = pymysql.connect( host='localhost', user='root', password="root", database='db', port=3306, charset='utf-8', ) cur = conn.cursor(cursor=pymysql.cursors.DictCursor) 更多参数 创建表操作 import pymysql # 打开数据库连接 db = pymysql.connect("localhost","testuser","test123","TESTDB"

关于web.xml配置中的<url-pattern>

不问归期 提交于 2019-12-01 07:57:58
标签<url-pattern> <url-pattern>是我们用Servlet做Web项目时需要经常配置的标签,例: <servlet> <servlet-name>index</servlet-name> <servlet-class>com.we.servlet.IndexServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>index</servlet-name> <url-pattern>/index</url-pattern> </servlet-mapping> 当我们在浏览器的地址栏里输入http://localhost:8080/we/index时[假设我部署在webapps目录下的项目名为we] 就会匹配到我们指定的<url-pattern>中,即/index然后一步一步找到对应的<servlet-class> 那我们输入的URL:http://localhost:8080/we/index又是如何与<url-pattern>中的/index匹配的呢? 首先我们要知道URL的组成 http://localhost:8080 我们可以理解为是我们的服务器地址,而该地址之后的部分我们统称为:RequestURI RequestURI是我们需要重点注意的部分,其又可以分解为几部分 /we

本地oracle可以通过localhost连接,无法通过ip地址连接解决方法,oracle远程连接配置

安稳与你 提交于 2019-12-01 07:55:59
Oracle11g安装后只有本地可以连接,远程无法连接,而且本地只能配置成localhost配置成IP地址也无法连接。 这是因为安装oracle的时候没有配置远程的监听,默认的监听是localhost 解决方法1:(简单,不用修改配置文件) 1.打开net manager 2.按照下图找到配置监听的地方 点击添加新地址: 3.我们需要配置IP地址访问的监听才能使数据库可以被远程访问 配置IP地址,注意端口不能与刚才的1521重复。 这样远程就可以连接了。 修改之后可能会有延迟,不会立刻生效。如果还是无法连接,可以将oracle服务重启。 补充: 此时你在你数据库安装目录下找到下面的配置文件: 你会发现 该配置文件里面就新增了一条我们刚刚增加的IP和端口 其实我们也可以直接修改该配置文件来达到上面的效果 来源: https://www.cnblogs.com/luzhanshi/p/11671063.html

Discuz学习总结——本地开发环境搭建与安装

淺唱寂寞╮ 提交于 2019-12-01 07:54:50
2019独角兽企业重金招聘Python工程师标准>>> 1.discuz开发环境搭建——工具 discuz用的是php语言,所以要得搭建php环境的框架,这里主要讲本地开发,所以主要是搭建本地的环境 本地开发,可以采用集成开发环境,用wamp或者xampp都可以。 xampp: https://www.apachefriends.org/zh_cn/index.html wamp: http://www.wampserver.com/en/ 推荐使用工具: Visual Studio Code 安装很简单,不细说了 2.discuz下载与安装 discuz下载地址: http://www.discuz.net/forum-10-1.html 2.1 下载完成后,解压后会有三个文件,我们要用到的是upload这个文件夹 2.2 打开VSCode,打开upload目录 2.3 ctrl+` 组合键打开控制台 2.4 输入 cd install进入安装目录 2.5 打开xampp,开启mysql服务 2.6 回到控制台,输入:php -S localhost:8000 开启服务 2.7 打开浏览器,输入localhost:8000或者127.0.0.1:8000进入安装界面,接着一步步操作 安装结束后,进入控制台:1. ctrl + C 停止服务; 2.cd ../ 跳到上级目录; 3

Nginx修改时间戳

心不动则不痛 提交于 2019-12-01 07:27:39
1.安装nginx,注意不要安装nginx-common或者nginx-full sudo apt-get install nginx sudo apt-get install nginx-common sudo apt-get install nginx-extras 确认版本 apt list --installed | grep nginx WARNING: apt does not have a stable CLI interface. Use with caution in scripts. nginx/xenial-updates,xenial-updates,xenial-security,xenial-security,now 1.10.3-0ubuntu0.16.04.4 all [已安装] nginx-common/xenial-updates,xenial-updates,xenial-security,xenial-security,now 1.10.3-0ubuntu0.16.04.4 all [已安装] nginx-extras/xenial-updates,xenial-security,now 1.10.3-0ubuntu0.16.04.4 amd64 [已安装] 2.修改配置 /etc/nginx/nginx.conf http { ## #

前后端分离————VUE+node(express)

荒凉一梦 提交于 2019-12-01 07:05:25
前后端分离————VUE+node(express) vue作为前端的框架,node(express)作为后端的框架。无数据库,使用端口保存数据。 VUE: 使用vue-cli构建vue项目(vueapp)。 npm install -g vue-cli(安装,安装过的就不用了) vue init webpack vueapp axios:(与ajax相似) import axios from 'axios' var url="http://localhost:3000" //express服务器的地址 axios.get(url+'/product') //放数据的接口 .then(function (response) { //收到的数据 console.log(response); console.log(response.data); //展示数据(看看是否拿到,和数据长啥样) var nodeData=response.data; }) .catch(function (error) { console.log(error);![在这里插入图片描述](https://img-blog.csdnimg.cn/20191013132943460.jpg) }); axios没安装的记得装一下。(安装不细说) node(express): 启动>>>npm start