localhost

tensorboard指定ip打开

随声附和 提交于 2019-11-30 23:55:43
有些文章说,在 windows 的 cmd 中输入命令: tensorboard --logdir=tf_log_path 就可以在浏览器中输入 http://0.0.0.0:6006/ (或者 http://localhost:6006/) 就可以看到 tensorboard 的界面了。 但是,事实上,常常不是这样的。如果想用 localhost 为本地ip 打开 tensorboard,需要指定: tensorboard --logdir=tf_log_path --host=localhost 如果想使用其他的 ip 为 tensorboard 的 ip,同理也可以在此处指定 来源: https://www.cnblogs.com/wandaoyi/p/11645151.html

How to point to localhost:8000 with the Dart http package in Flutter?

走远了吗. 提交于 2019-11-30 22:16:53
问题 I'm following the Flutter Networking/HTTP tutorial to do a GET request to a server running on my localhost:8000. Visiting my localhost via my browser works fine. My code looks like this: var url = 'http://localhost:8000'; Future<String> getUnits(String category) async { var response = await httpClient.get('$url/$category'); return response.body; } This works fine when I point to any real URL, such as https://example.com , but when I point to https://localhost:8000 or https://localhost (or any

Configuring Notepad++ to run php on localhost?

大兔子大兔子 提交于 2019-11-30 21:31:56
I am trying to get the option Run->Launch With Firefox; to open the file I am currently viewing in Notepad++ at http://127.0.0.1:8080/currentfile.php , but instead it just opens to current file directory in Firefox.. I've tried to edit the shortcut xml file in the Notepad++ directory, I've shut Notepad++ down and edited the XML file with regular Notepad, and when I start Notepad++ back up it does not show the settings I entered.. How can I edit the settings to load localhost rather than the file directory in Firefox? well two things you edited the wrong file , i'm guessing you are using

Kafka安装步骤

荒凉一梦 提交于 2019-11-30 21:03:38
基本概念 1.Producer:消息生产者,就是向 kafka broker 发消息的客户端 2.Consumer:消息消费者,向 kafka broker 取消息的客户端 3.Consumer Group(CG ):消费者组,由多个 consumer 组成。 消费者组内每个消费者负责消费不同分区的数据, 一个分区只能由一个 组内 消费者消费; 消费者组之间互不影响。 所有的消费者都属于某个消费者组,即 消费者组是逻辑上的一个订阅者。 4.Broker:一台 kafka 服务器就是一个 broker。一个集群由多个 broker 组成。一个 broker可以容纳多个 topic。 5.Topic:可以理解为一个队列, 生产者和消费者面向的都是一个 topic 6.Partition:为了实现扩展性, 一个非常大的 topic 可以分布到多个 broker (即服务器) 上,一个 topic 可以分为多个 partition,每个 partition 是一个有序的队列; 7.Replica: 副本, 为保证集群中的某个节点发生故障时, 该节点上的 partition 数据不丢失,且 kafka 仍然能够继续工作, kafka 提供了副本机制, 一个 topic 的每个分区都有若干个副本,一个 leader 和若干个 follower。 8.leader:每个分区多个副本的“主”

test local websites with mamp on iphone?

℡╲_俬逩灬. 提交于 2019-11-30 19:51:09
i wonder if it's possible to view my local test-environment set up with mamp on my iphone? e.g. i'm using mamp-pro and i set up a domain http://mydomain.com which shows /htdocs/mydomain.com in my browser. is there an easy way to view that page on my iphone as well. my iphone is in the same network - just my home network where my mac is in and my iphone is in. i pinged out the ip of my local mamp domain which is: 192.168.160.1 if i enter that one in my firefox i get a directory listing of all my htdocs folders. if my iphone is in the same network shouldn't it be possible to enter that ip as

记一次linux Docker网络故障排除经历

故事扮演 提交于 2019-11-30 19:17:58
背景:   之前做了一个项目,需要在容器内访问宿主机提供的Redis 服务(这是一个比较常见的应用场景哈), 常规方案: ① 主机网络(docker run --network=host): 完全应用主机网络堆栈,在容器内localhost就是指向宿主机 ② 网桥网络(docker run --network=bridge): 这也是docker容器默认的网络通信模式,容器内localhost 指向的是容器自身,不能使用 localhost 访问宿主机上localhost:6379承载的Redis服务 。 docker会默认建立docker0 网桥; 网桥有一个网关ip, 有一个子网段; 网桥内容器从子网段中确定容器ip( ip addr eth0), 网桥内容器可通过 service name相互访问; 网桥内容器通过 docker0 Getway得以访问外网。 我们不做骚操作,肯定还是沿用常见的②网桥模式, 第一步:自定义网桥: docker network create --gateway 172.16.1.1 --subnet 172.16.1.0/24 app_bridge 为啥不适用默认docker0网桥? 本文开头说了, docker0 是默认网桥,新建的容器默认都会加入这个网桥,所以我们需要建立一个专属于本程序的网桥app_bridge 第二步

nginx+tomcat 使用教程

北慕城南 提交于 2019-11-30 18:58:56
Nginx + Tomcat Nginx负载均衡,其实主要就是用upstream、server指令,再配以权重等等参数。如果为了让nginx支持session共享,还需要额外增加一个模块。 一、Nginx负载均衡 在http{...}中配置一个upstream{...},参考如下: 引用 upstream tomcat { server 10.11.155.26:8080; server 10.11.155.41:8080; } 接着修改location节点,配置代理: 引用 location / { ... proxy_pass http://tomcat; ... } 当访问根路径时,会轮播路由到两台服务器上,至于后端服务器是tomcat还是jetty之类的,都无所谓,照葫芦画瓢就是了。 当然,有的机器性能好,或者负载低,可以承担高负荷访问量,可以通过权重(weight),提升访问频率。数值越高,被分配到的请求数越多。 server指令参数如下: weight——权重,数值越大,分得的请求数就越多,默认值为1。 max_fails——对访问失败的后端服务器尝试访问的次数。默认值为1,当设置为0时将关闭检查。 fail_timeout——失效超时时间,当多次访问失败后,对该节点暂停访问。 down——标记服务器为永久离线状态,用于ip_hash指令。 backup—

mysql数据备份

自古美人都是妖i 提交于 2019-11-30 18:56:06
导出整个数据库结构和数据 mysqldump -h localhost -uroot -p123456 database > dump.sql 导出单个数据表结构和数据 mysqldump -h localhost -uroot -p123456 database table > dump.sql 导出整个数据库结构(不包含数据) mysqldump -h localhost -uroot -p123456 -d database > dump.sql 导出单个数据表结构(不包含数据) mysqldump -h localhost -uroot -p123456 -d database table > dump.sql #### 总是找不到随笔记一下 来源: https://www.cnblogs.com/jinghu/p/11635978.html

centos7.2静默安装oracle11g

自作多情 提交于 2019-11-30 18:55:19
前言:国庆节前centos7.2上静默安装11g出现了多次问题,特地把安装过程自己整理一遍方便下次安装查询。 下载oracle 官方网站: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/ 请根据自己的操作系统选择 一、centos7系统准备工作 1、操作系统 root登录centos [root@localhost ~]# uname -m x86_64 [root@localhost ~]# cat /etc/redhat-release redhat-7 vi /etc/redhat-release oracle默认不支持CentOS系统安装,修改文件 /etc/RedHat-release hostname 修改,修改后注意,前后必须一致 [root@localhost ~]# hostname localhost.localdomain [root@localhost ~]# hostnamectl set-hostname localhost.localdomain 2、/etc/hosts文件中添加主机名 [root@localhost ~]# ip addr 查看自己的ip地址 [root@localhost ~]# cat /etc/hosts 127.0.0.1

Python操作三大主流数据库

不问归期 提交于 2019-11-30 18:13:09
Python操作三大主流数据库 Python操作三大主流数据库 网址:https://coding.imooc.com/learn/list/114.html 学会使用的技术栈:python flask redis mongoDB mysql 第1章 数据库简介 简单介绍Mysql、数据库简介、导学篇 第2章 mysql基础 XAMPP 集成好的 最流行的PHP开发环境 mac 版本的mysql 安装 https://www.cnblogs.com/myxq666/p/7787744.html 数据库调试代码 -- 数据库链接小测试 CREATE DATABASE `mydatabase`; USE `mydatabase`; CREATE TABLE `students`( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, -- 【解释】 id 整数类型 不为空 自动增长 `name` VARCHAR(200) NOT NULL, `nickmane` VARCHAR(200) NULL, `sex` CHAR(20) NULL, `in_time` DATETIME NULL ) DEFAULT CHARACTER SET utf8 ; -- 插入一条语句 INSERT INTO `students` VALUE(1, 'sss',