hosts

【零基础】搞定zabbix安装

烈酒焚心 提交于 2019-11-27 11:01:52
一、前言   最近想做服务器压力测试,测试软件找到了,突然发现还没有很好的办法监控服务器运行情况,之前用过zabbix,所以想到说要不就用zabbix来监控服务器运情况,不过这次就要好好研究下zabbix各种参数怎么回事了。 二、安装LAMP环境   zabbix要基于LAMP环境,之前写过一个比较完整的,链接如下:   https://www.cnblogs.com/cation/p/11186355.html   按步骤安装即可。 三、安装zabbix   //先安装yum源   # rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-2.el7.noarch.rpm   # yum clean all   //通过yum直接安装server、agent   # yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent 四、初始化数据库   # mysql -uroot -p   //创建zabbix数据库   >create database zabbix character set utf8 collate utf8_bin;   //创建zabbix用户并分配数据库权限   >create user

How to change the hosts file on android [closed]

£可爱£侵袭症+ 提交于 2019-11-27 10:46:42
I have successfully rooted my Samsung Galaxy Mini (android 2.2.1) and thought, that I could change anything (as root usually can). I would like to change the hosts file on the android, to include some local addresses. However, I still get the message that I do not have permission to do that. I tried following options: adb push /path/to/my/new/hosts /system/etc ... and I got the response Read-only file system . directly in the shell on the phone. But this didn't work either. I can do su in the console, but cannot change the file. Isn't it strange, that as super user I am not allowed to change

文件属性

别说谁变了你拦得住时间么 提交于 2019-11-27 06:06:19
通配符 ^ 以什么开头 ls | grep ^d $ 以什么结尾 df -h |grep /$ linux系统文件如何压缩 tar zip rar bz2 为什么要使用压缩 1.节省空间 2.备份 3.减少IO (重要)1000个文件 什么时间压缩 业务的低谷期 tar tar压缩格式 tar -zcvf 包名 文件或目录 tar -zcvf 框子 萝卜 香蕉 苹果 梨 -z 使用压缩的方式 gzip -c 创建 -v verbose 显示压缩的过程 -f 指定包的名字 -f参数必须在最后 -x 解压压缩包 -P 如果不是相对路径执行 使用-P -t 查看压缩包内的内容 -C 指定解压的目录 tar压缩 简写 tar zcf name.tar.gz /etc oldboy.txt tar解压缩 简写 tar xf name.tar.gz 报警: [root@oldboy ~]# tar -zcvf hosts.tar.gz /etc/hosts tar: 从成员名中删除开头的“/” 解压压缩包 tar zxvf file.tar.gz 压缩的时候 建议使用相对路径压缩 如果不使用相对路径 压缩后带路径的名字 tar -tPf hosts.tar.gz tar xf hosts.tar.gz -C /tmp/ 压缩在哪里可以在hosts.tar.gz /etc/hosts.tar

vultr 安装k8s

試著忘記壹切 提交于 2019-11-27 04:08:21
vultr 安装k8s 高可用集群所需节点配置如下 角色 数量 描述 管理节点 1 运行ansible/easzctl脚本,复用master,建议使用独立节点(2c4g) etcd节点 3 注意etcd集群需要1,3,5,7...奇数个节点,一般复用master节点 master节点 1 高可用集群至少2个master节点 node节点 3 运行应用负载的节点,可根据需要提升机器配置/增加节点数 新加坡节点,开启ipv6和虚拟网 1.1 安装管理节点所需软件包 # Ubuntu 16.04 apt-get install git python-pip -y # CentOS 7 yum install git python-pip -y # pip安装ansible(国内如果安装太慢可以直接用pip阿里云加速) #pip install pip --upgrade #pip install ansible==2.6.12 netaddr==0.7.19 pip install pip --upgrade -i https://mirrors.aliyun.com/pypi/simple/ pip install ansible==2.6.12 netaddr==0.7.19 -i https://mirrors.aliyun.com/pypi/simple/ 1.2

Windows Batch: How to add Host-Entries?

穿精又带淫゛_ 提交于 2019-11-27 04:02:33
问题 I want to use this batch script to add new entries into my host file automatically by using windows batch. Unfortunately, the script just adds one single line to the hosts file , also when i run the script as a administrator, so what's wrong? @echo off set hostspath=%windir%\System32\drivers\etc\hosts echo 62.116.159.4 ns1.intranet.de >> %hostspath% echo 217.160.113.37 ns2.intranet.de >> %hostpath% echo 89.146.248.4 ns3.intranet.de >> %hostpath% echo 74.208.254.4 ns4.intranet.de >> %hostpath%

【Ansible之playbook剧本】_

拥有回忆 提交于 2019-11-27 02:51:17
目录 基本用法 传参使用 条件判断 when 标签 tags 模板 template 循环 with_item handlers 原文: http://106.13.73.98/__/150/ @(Ansible之playbook剧本) ymal: 列表: - 字典: key-value 文件后缀名: yml ansible-playbook 命令格式: -C :--check 干跑,不会执行 -f :FORKS 并发执行 --syntax-check :语法检查 --list-hosts :列出主机列表 基本用法 test.yml剧本文件内容如下: sts: db # 指定主机 remote_user: root # 指定用户 tasks: # 任务列表 - name: create_user # 任务1 user: name=user01 - name: create_group # 任务2 group: name=group01 运行命令: ansible-playbook test.yml 当所有的机器都执行完第一个任务后才会执行第二个任务。 一个文件内可以有多个剧本,剧本与剧本之间用空格隔开。 传参使用 - hosts: db remote_user: root tasks: - name: create_user{{ user }} # ! user: name={{

ssh无法登录,提示Connection closing...Socket close.

懵懂的女人 提交于 2019-11-27 01:45:46
一、问题无法ssh直接连接到服务器 [C:\~]$ ssh 192.168.7.77 Connecting to 192.168.7.77:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(192.168.7.77:22) at 16:51:19. 二、问题原因及解决方法 sshd的配置,自己的IP地址没有加入到hosts.allow配置文件中,而hosts.deny则拒绝了除allow外的所有主机登录。 解决方法:把自己的IP地址加入到hosts.allow文件中,并重启sshd服务。 # ll /etc/hosts.* -rw-r--r-- 1 root root 767 Jan 2 2017 /etc/hosts.allow -rw-r--r-- 1 root root 888 Aug 15 2016 /etc/hosts.deny # grep -Ev '#' /etc/hosts.deny sshd:all # grep -Ev '#' /etc/hosts.allow

Why does Microsoft Edge open some local websites, but not others, where the domain name is routed to 127.0.0.1 in hosts file

时光怂恿深爱的人放手 提交于 2019-11-26 21:39:20
Like a lot of programmers, I test sites locally. I use the hosts file to map domain names to my local ip (127.0.0.1). I use qualified domain names, usually with a "d" subdomain (for "development"). For example: d.somewebsite.com d.anotherwebsite.com and so on... In Microsoft edge, most of the web sites work. However, a couple of them do not. There is nothing special or weird about the domain names that won't work. Just a simple d.someletters.com . They work fine in Chrome, IE, and Firefox. In Edge, I get the error message: "Hmm, we can't reach this page." At first I thought it wasn't resolving

Set cURL to use local virtual hosts

◇◆丶佛笑我妖孽 提交于 2019-11-26 21:22:11
Using Apache or Ngnix I always create development sites based on real projects such as http://project1.loc which, after adding to my .hosts file, the browser has no problem using. However, when I attempt to make a cURL request ( http://project1.loc/post.json ) to that same URL I never get anything but a timeout. I'm assuming cURL doesn't care about my custom hosts and goes straight to a name server for it's info. How can I fix this? UPDATE I set a custom header "HOST: http://project1.loc " and now I am getting 400 errors - but they are instantaneous so I'm assuming that cURL is at least using

JetBrains IntelliJ IDEA v2019.1.3安装破解教程(全网独家永久激活,非一年注册码)

寵の児 提交于 2019-11-26 20:53:05
JetBrainsIntelliJ IDEA v2019.1.3安装破解教程,附安装包和激活工具(注册机)、永久激活码。可以永久激活Windows、MAC、Linux!!! 网上有激活码的激活方式(更改hosts),一般都是几个月或者一年,我这种方式是永久破解,真正亲测可用,100%可以破解成功,如果失败,请仔细检查每个步骤,或者QQ联系我。 JetBrains IntelliJ IDEA v2019.1.3 官方安装包下载地址 ,MAC和Linux官方安装包由于小众请自行去官方下载。 IntelliJ IDEA 注册机(破解补丁)百度网盘下载地址: https://pan.baidu.com/s/1uHMY4mNA9_s5XnkSsirdwA 提取码:rbsa 我提供的这种方式,绝对可以破解JetBrains IntelliJ IDEA v2019.1.3,其他版本我不保证可以破解!!!一定要使用官方提供的IntelliJ IDEA安装包!!!!!!全网独家可用!!!!!!! 不要再去搜索尝试其他人的破解方式,真是浪费时间!!!网上其他所有破解方式,本人亲测不可用,都是过时的,特别可恶!!!!激活码激活或者激活服务器激活都不能长久,不可靠!!!!! 注意注意:如果之前通过修改hosts的方式破解过,请先将hosts中有关jetbrains的配置删除再进行其他步骤,如下所示 0.0