LoopBack

【Linux常见命令】ip命令

淺唱寂寞╮ 提交于 2019-12-05 06:52:11
ip命令是用来配置网卡ip信息的命令,且是未来的趋势,重启网卡后IP失效。 ip - show / manipulate routing, devices, policy routing and tunnels 语法: ip [ OPTIONS ] OBJECT { COMMAND | help } 这一条命令几乎包含了所有使用方法,其中 对象OBJECT={ link | addr | addrlabel | route | rule | neigh | ntable | tunnel | maddr | mroute | mrule | monitor | xfrm | token } 选项OPTIONS={ -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | link } | -o[neline] | -t[imestamp] | -b[atch] [filename] | -rc[vbuf] [size] } 不过COMMAND比较长,请使用’ip OBJECT help’查看。 剩下的如下显示: ip [-force] -batch filename

how to bypass Oracle ADF loopback script for scripting website using php cURL library?

喜夏-厌秋 提交于 2019-12-04 09:12:59
I am scraping a website which has Oracle ADF loopback script which continuously redirects me to same page of mine, so how to bypass it? Following is my php code. <?php $url = 'https://www.mywebsite.com/faces/index.jspx'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) . '/cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) . '/cookie.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $header[] = 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'; curl_setopt($ch, CURLOPT

11.13实验

回眸只為那壹抹淺笑 提交于 2019-12-04 08:19:59
AR1: system-view interface LoopBack 0 ip address 192.168.10.254 24 interface LoopBack 1 ip address 192.168.20.254 24 quit interface GigabitEthernet 0/0/0 ip address 10.1.1.1 30 quit ip route-static 10.1.1.8 30 10.1.1.2 ip route-static 172.16.1.0 24 10.1.1.2 AR2: system-view interface GigabitEthernet 0/0/0 ip address 10.1.1.2 30 interface GigabitEthernet 0/0/1 ip address 10.1.1.9 30 quit ip route-static 192.168.10.0 24 10.1.1.1 ip route-static 192.168.20.0 24 10.1.1.1 ip route-static 172.16.1.0 24 10.1.1.10 AR3: system-view interface GigabitEthernet 0/0/0 ip address 10.1.1.10 30 quit interface

环回接口以及MTU

烂漫一生 提交于 2019-12-04 08:03:07
一、环回接口 1.环回接口出现的目的 为了解决客户机使用网络协议(如TCP/IP协议)与同一台计算机上的服务器通信的需求,实现了工作在网络层的虚拟的环回网络接口。 它不是真正的网络接口,实际上是一种由操作系统提供的专用软件,可通过TCP/IP与统一主机的其他服务器进行通信。 2.地址选择 A类地址段127.0.0.0默认被用作本地环回地址,其实只要是127开头的所有地址均是环回地址。 这个地址是用于标志本机的localhost。也就是说当要向本机发送数据时,就会用到环回地址。 具体事例说明: 就拿pc来说,pc的网卡就相当于路由器的一个接口。如一台pc网卡上设置的地址为220.172.115.50,网卡连接正常时,协议状态up,在dos命令行状态下输入ipconfig便可看到该网卡上的IP地址。此时在主机上ping其网卡地址的过程如下:主机发送一个icmp包,目的地址为220.172.115.50,请求对方回答;主机根据默认环回主机路由发现数据包目的地址的下一跳指向其loopback接口(主机事先并不知道该地址就在其网卡上),于是将数据包发往其loopback接口(即直接发往cpu);之后主机收到源IP为220.172.114.50的ping包,于是对该数据包进行回答,回应包亦根据环回路由原路返回。从该过程可看出,该数据包的始发点和被接收点都在同一个接口

Debian kvm网络配置

一世执手 提交于 2019-12-03 20:40:13
安装brctl apt-get install bridge-utils 设置网桥 可编辑 /etc/network/interface 文件。不过,我建议在 /etc/network/interface.d/ 目录下放置一个全新的配置。在 Debian Linux 配置网桥的过程如下: 步骤 1 - 找出物理接口 $ ip -f inet a s   输出如下: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.2.23/24 brd 192.168.2.255 scope global eno1 valid_lft forever preferred_lft forever   eno1是物理网卡 更新 /etc/network/interfaces 文件 确保只有 lo (loopback 在 /etc/network/interface 中处于活动状态)。(LCTT 译注:loopback 指本地环回接口,也称为回送地址)删除与 eno1 相关的任何配置。 # This file describes the network interfaces available on your system #

OpenStack RDO + S3

空扰寡人 提交于 2019-12-03 16:02:18
Packstack(RDO) installation "sync db timeout" issue version: openstack-packstack-13.0.0-0.1.0rc1.el7.noarch openstack-packstack-puppet-13.0.0-0.1.0rc1.el7.noarch add timeout => 0, into /usr/share/openstack-puppet/modules/ module /manifests/db/sync.pp , or set $db_sync_timeout = 300 to $db_sync_timeout = 0 For example: # vim /usr/share/openstack-puppet/modules/nova/manifests/db/sync.pp class nova::db::sync( $extra_params = undef, $db_sync_timeout = 0, ) Create ec2 credentials # source keystonerc_admin # openstack ec2 credentials create --project demo --user demo swfit s3api configuration

09 : docker 4种网络类型

一世执手 提交于 2019-12-03 12:03:08
重启docker服务,容器全部退出的解决方法(建议使用第一种) 1: docker run --restart=always (起容器的时候,指定这个参数--restart=always) 2:添加:"live-restore": true (重启或者stop docker,容器也会活着) [root@k8s129 ~]# cat /etc/docker/daemon.json { "registry-mirrors": ["https://aeckruos.mirror.aliyuncs.com"], "insecure-registries": ["192.168.6.129:5000"], "live-restore": true } [root@k8s129 ~]# systemctl restart docker ---docker 网络---------------------- docker 网络类型 1:None: 不为容器配置任何网络功能。 --net=none (--network none) [root@k8s129 ~]# docker run -it --net=none busybox:latest / # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000 link

MongoError: user is not allowed to do action

不问归期 提交于 2019-12-03 11:26:37
I am using MongoDB Atlas as my database. I am using angular4 with loopback as api. My application connects to my database fine. However, when I try to get data, I get this error (I have replaced my dbname with dbname) : MongoError: user is not allowed to do action [find] on [dbname.$cmd] The query works fine if I use a local mongodb client or a mongodb instance on AWS. However, when using atlas, I get this error. I had the same error myself. If you are using v.3.0 of the MongoDB NodeJS driver refer to MikaS post for the MongoClient.connect changes that need to be made. https://stackoverflow

Centos7+LVS-DR+Apache负载均衡web实验

こ雲淡風輕ζ 提交于 2019-12-03 10:29:11
Centos7+LVS-DR+Apache负载均衡web实验 分类: linux运维技术 , 负载均衡 标签: lvs , 负载均衡 一、简介   1、理论已经在上一篇博客简述,不了解得可以看看      https://www.cnblogs.com/zhangxingeng/p/10497279.html   2、LVS-DR优缺点复习          关于这种模式:       1)确保前端路由器将目标ip为vip的请求报文发往director         a、在前端网关做静态绑定;         b、在RS上使用arptables;         c、在RS上修改内核参数以限制arp通告即应答级别;           arp_announce           arp_ignore       2)、RS的RIP可以使用私网或公网地址;       3)、RS跟director在同一物理网络;       4)、请求报文经由director,响应报文直接发往client;       5)、此模式不支持端口映射;       6)、RS支持大多数的OS;       7)、RIP的网关不能指向DIP,以确保响应报文不经由director;             缺点:LVS调度器及应用服务器在同一个网段中,因此不能实现集群的跨网段应用。      优点

Record audio loopback from audio output device on Snow Leopard and later

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I would like to programatically record audio loopback from audio output device(NOT input) on OSX 10.6+ in C/C++/ObjC. It should capture audio output(PCM raw data) from all processes instead of a specific process like SoundFlower. Any idea on this? 转载请标明出处: Record audio loopback from audio output device on Snow Leopard and later 文章来源: Record audio loopback from audio output device on Snow Leopard and later