localhost

kafka 入门

让人想犯罪 __ 提交于 2019-12-02 14:56:59
Apache kafka kafka 是一个分布式的基于发布订阅的消息队列,主要应用于大数据实时处理领域。 什么是消息系统 消息系统负责将数据从一个应用程序传输到另一个应用程序,分布式消息传递基于可靠消息队列的概念。有两种类型的消息模式可用,一种是点对点, 另一种是 发布-订阅(pub-sub)消息系统,大多数是遵循 pub-sub 点对点系统, 消息被保存在队列中,一个或者多个消费者可以消耗队列中的消息,但是特定消息只能由某个消费者消费。一旦消费者读取队列中的消息,它 就从队列中消失。 发布-订阅消息系统, 在发布-订阅系统中,消息被保留在主题中,消费者可以订阅一个或者多个主题并使用主题中的消息。在 pub-sub 系统中,消息生产者成为发布者,消息使用者称为订阅者。 什么是 Kafka Apache Kafka 是一个分布式发布-订阅消息系统和一个强大的队列,可以处理大量的数据,并使消息从一个端点传递到另一个端点。Kafka 消息保留在磁盘上,并在集群内复制以防止数据丢失。 Kafka 的特带: 可靠性 kafka 是分布式的,分区,复制,容错 可扩展性 耐用性 性能 Kafka 工作流程 订阅具有相同 group id 的主题的消费者被认为是单个组,并且消息在他们之间共享。 pub -sub 工作流程 生产者定期向主题发送消息 kafka

WIN7开发无法通过IP(127.0.0.1/10.4.250.107)而只能通过localh...

♀尐吖头ヾ 提交于 2019-12-02 14:48:13
前段时间公司换了新笔记本, 装了WIN7, 其实挺高兴的, 而且我自己家里的台式机在10年7,8月左右就用了WIN7, 自己感觉用WIN开发没什么问题, 也就没换系统了. 结果, 真测试起来才发现, 同事都无法访问我的应用, 也发现我自己只能通过localhost访问tomcat, 无法通过ip地址访问(127.0.0.1/10.4.250.107), 真是很诡异. 起初认为是防火墙, 可折腾了半天都无果, 在网上搜了很久, 各种办法尝试了也没效果. 最后, 总结了一下网上的观点, 发现应该是IPv6和IPv4的问题, 我ping localhost和ping liu-laptop(机器名) 得到的IP都是IPv6格式. 最后搜索了一下"win7 tomcat ipv6", 果然找到了有效的解决办法...下面直接上方法. 1. 使用cmd命令netstat -n, 查看tomcat地址绑定, 发现是绑定到::1, IPv6. 2. 配置tomcat的server.xml, 更改connector配置, 端口不用改, 加上address="0.0.0.0", 使其绑定到IPv4, 如下 <Connector port="8080" maxHttpHeaderSize="8192" address="0.0.0.0" maxThreads="150" minSpareThreads=

Can we use roundcube, thunderbird or any webmail in our xampp/wamp server?

只愿长相守 提交于 2019-12-02 14:44:21
问题 I have a web application developed in PHP and all users can access it via local network(xampp), now the users want to access their gmail,yahoo or any emails via localhost(xampp), I want something like MS-outlook to work in my xampp. is there any solution ? 来源: https://stackoverflow.com/questions/39699980/can-we-use-roundcube-thunderbird-or-any-webmail-in-our-xampp-wamp-server

Localhost running on mac.. Can I view it on my Android phone?

不打扰是莪最后的温柔 提交于 2019-12-02 14:36:19
Running a ruby on rails project on my mac. I need to test it on my android phone. Is there a way to view my mac localhost on my android phone? The name "localhost" is just a loopback to your own computer. To access it on your Android, you need to find the computer's IP address. The most general way of finding this info, which works on both Mac and Linux, is to go into the Terminal and type ifconfig . Look for either "en0" or "en1", and under that entry look for the "inet" listing. It will be something along the lines of "192.168.1.100". When you find that address, that's what you'll want to

源码安装redmine

微笑、不失礼 提交于 2019-12-02 14:29:35
http://www.redmine.org/projects/redmine/wiki/redmineinstall 创建redmine数据库 mysql -u root -p 输入mysql密码后,依次执行 CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; 修改database.yml cp config/database.yml.example config/database.yml production: adapter: mysql2 database: redmine host: localhost username: root password: my_password 安装依赖项 需要安装mysql2,rails3的驱动全用的mysql2. sudo apt-get install libmysqlclient-dev gem install mysql2 如果需要 sudo apt-get install imagemagick libmagickwand-dev gem

What's the whole point of “localhost”, hosts and ports at all?

北战南征 提交于 2019-12-02 14:11:38
I'm totally new to this web development stuff. So I see things like "localhost" all the time and ask myself: What's that? I feel to know what a "host" actually is. Something that executes something. So my mac is the host for everything that runs on it. So "localhost" is actually just my mac? Can I have also other hosts? like "otherhost" or "betterhost"? So when I write in my browser: http://localhost:80/mysite/index.php , this "localhost" thing tells the browser to look on my machine for that stuff rather than online? Maybe someone can clear this up a little bit :-) In computer networking,

How can I install SSL on localhost in Ubuntu?

ぐ巨炮叔叔 提交于 2019-12-02 14:08:41
I want to install an SSL certificate on my localhost in Ubuntu environment because I can't work on the production server directly. I have to put some conditions in my code on the basis of whether the page is HTTP or HTTPS. How can I do this? Ritesh Enable the apache module by typing: sudo a2enmod ssl After you have enabled SSL, you'll have to restart the web server for the change to be recognized: sudo service apache2 restart Let's start off by creating a subdirectory within Apache's configuration hierarchy to place the certificate files that we will be making: sudo mkdir /etc/apache2/ssl Now

Webpack 4.X 从入门到精通 - devServer与mode(三)

柔情痞子 提交于 2019-12-02 14:01:12
上一篇文章 里详细介绍了一下插件的用法,这一篇文章接着丰富 module.exports 里的属性。如今的前端发展已经非常迅速了,伴随而来的是开发模式的转变。现在已经不再是写个静态页面并放在浏览器里打开预览一下了。在实际的开发中会经常需要使用 http 服务器,比如之前的 ajax ,想要看到效果就必需搭建一个服务器。搭建服务器的方式有非常的多,而 webpack 则原生的提供服务器的支持,大家无需再去下载软件。同时它还提供了自动刷新、热更新等功能,使开发变得非常方便。 devServer 安装使用 npm i webpack-dev-server -D 打开终端,并进入到对应的项目里(我的为 webpack-demo ),执行命令 webpack-dev-server ,如果终端里显示如下则表示已经成功开启服务器 注意: 1、此时可能会提示 webpack-dev-server 不是内部命令,解决办法为在全局再次安装一下 webpack-dev-server 模块,或者在 package.json 里的 scripts 里加上 "dev": "webpack-dev-server" ,然后执行命令 npm run dev 2、此时我并没有通过 webpack 命令生成一个 dist 目录(目录结构如下图),然后在浏览器里输入地址 http://localhost:8080/ 后

Invalid Host Header when ngrok tries to connect to React dev server

陌路散爱 提交于 2019-12-02 13:50:40
I'm trying to test my React application on a mobile device. I'm using ngrok to make my local server available to other devices and have gotten this working with a variety of other applications. However, when I try to connect ngrok to the React dev server, I get the error: Invalid Host Header I believe that React blocks all requests from another source by default. Any thoughts? im encountering a similar issue and found two solutions that work as far as viewing the application directly in a browser ngrok http 8080 -host-header="localhost:8080" ngrok http --host-header=rewrite 8080 obviously

深度学习tensorflow-gpu安装+cuda+cudnn

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 12:49:02
我安装tensorflow-gpu的时候走了很多弯路,入了很多坑,所以特此写下攻略希望能帮助到更多小白。 安装前:请先安装pycharm,对于windows来说我推荐安装pycharm。安装好pycharm后,要添加环境: 然后下载pip,pip换源后速度大大加快!!! pip下载方法: https://jingyan.baidu.com/article/9f7e7ec0635a122f2915546c.html 下方网址pip换源: https://blog.csdn.net/wls666/article/details/95456309 接下来开始安装tensorflow。 第一步,确定你的安装类型:1)支持GPU类型,还是2)CPU类型 一.如果安装cpu版,直接输入pip install tensorflow,不加版本号默认下载最新版本 。 二.安装GPU版本 我安装了python3.7,pycharm2017,tensorflow-gpu==1.13.1,cuda10.0,cudnn7.6.3 1.从官网下载cuda: CUDA官网:https://developer.nvidia.com/cuda-downloads 下载好后一直单击next就好不需要点其他的。 添加环境: 2.下载cudnn: cudnn下载需要注册账号 cudnn下载网址:https:/