如果您对ubuntu20.01利用apt部署logstash并添加到自启动服务感兴趣,那么本文将是一篇不错的选择,我们将为您详在本文中,您将会了解到关于ubuntu20.01利用apt部署logsta
如果您对ubuntu 20.01利用apt部署logstash并添加到自启动服务感兴趣,那么本文将是一篇不错的选择,我们将为您详在本文中,您将会了解到关于ubuntu 20.01利用apt部署logstash并添加到自启动服务的详细内容,我们还将为您解答ubuntu配置apt的相关问题,并且为您提供关于apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu、Debian 9 / Debian 10 / Ubuntu 18.04 / Ubuntu 18.10 快速开启 BBR 加速 或 关闭 BBR 加速、install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd、Intel RealSense D435i Installation on Linux (Ubuntu 16.04 and Ubuntu 18.04)的有价值信息。
本文目录一览:- ubuntu 20.01利用apt部署logstash并添加到自启动服务(ubuntu配置apt)
- apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu
- Debian 9 / Debian 10 / Ubuntu 18.04 / Ubuntu 18.10 快速开启 BBR 加速 或 关闭 BBR 加速
- install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd
- Intel RealSense D435i Installation on Linux (Ubuntu 16.04 and Ubuntu 18.04)
ubuntu 20.01利用apt部署logstash并添加到自启动服务(ubuntu配置apt)
参考官方指导:
https://www.elastic.co/guide/en/logstash/current/installing-logstash.html
sudo apt-get install apt-transport-https
设定elasticsearch的源
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
由于我的ubuntu需要挂代理才能上外网,此处我只好将KEY文件下载后传入我的UBUNTU,然后手工导入。如果可以直接访问到elastic.co,请参考开篇的官方链接
https://artifacts.elastic.co/GPG-KEY-elasticsearch
sudo apt-key add GPG-KEY-elasticsearch
更新
sudo apt-get update
sudo apt-get upgrade
允许root:
sudo passwd root
更改了密码后,就可以用su登录并访问下面的文件了
把conf文件放入下面的文件夹:
/etc/logstash/conf.d/
将logstash安装成自启动服务
systemctl enable logstash.service
重启
sudo reboot
重新登陆后,查看服务
sudo systemctl
从里面翻一翻,应该能找到logstash
tail -f /var/log/logstash/logstash-plain.log
至此安装结束。
apt-get update 失败 ubuntu:Tempory failure resolving 'cn.archive.ubuntu.com ubuntu
当运行apt-get update后出现如下错误时:E: Some index files Failed to download,they have been ignored,or old ones used instead.
可以将目录下/var/lib/apt/lists/partial/所有的文件清掉,再次运行apt-get update即可!自带源在大陆不好。
出现以下错误:
ubuntu:Tempory failure resolving ''cn.archive.ubuntu.com ubuntu
1,重启生效:
sudovi/etc/resolvconf/resolv.conf.d/base(这个文件默认是空的)
在里面插入:
nameserver8.8.8.8
nameserver8.8.4.4
如果有多个DNS就一行一个
修改好保存,然后执行
sudoresolvconf-u
再看/etc/resolv.conf,最下面就多了2行:
cat/etc/resolv.conf
#Dynamicresolv.conf(5)fileforglibcresolver(3)generatedbyresolvconf(8)
#DONOTEDITTHISFILEBYHAND--YOURCHANGESWILLBEOVERWRITTEN
可以看到我们的设置已经加上了,然后再ping一个域名,当时就可以解析了,无需重启。
2,重启失效:
配置文件地址 /etc/resolv.conf
使用编辑器打开
改为如下内容:
search localdomain
nameserver 202.96.128.86 希望修改成的DNS
nameserver 202.96.128.166 备用DNS
重启网络:sudo /etc/init.d/networking restart。即可
Debian 9 / Debian 10 / Ubuntu 18.04 / Ubuntu 18.10 快速开启 BBR 加速 或 关闭 BBR 加速
如果使用的是 Debian 9、Debian 10、Ubuntu 18.04、Ubuntu 18.10 等内核高于 4.9 版本的系统,均可以使用此方法开启 BBR 加速,若你使用了 Ubuntu 19.04 的系统无需开启,系统默认就开启了。虽然 BBR 没有锐速那么暴力,但是兼容性和稳定性占优势,推荐大家使用。对与什么是 BBR 我就不详细说明了,这是一款由谷歌推出的 TCP 单边加速的拥塞控制算法。
开启 BBR
1. 修改 sysctl.conf 系统参数
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
2. 保存并生效
sysctl -p
得到返回值如下:(最后两行有就可以了)
3. 查看是否已开启 BBR
sysctl net.ipv4.tcp_available_congestion_control
若得到返回值带有 bbr 则成功开启,如:
4. 检查 BBR 是否成功启动
lsmod | grep bbr
如返回信息则表示已经成功开启:
如果不确定自己的系统是支持快速开启 bbr 可以查看使用下面的命令查看内核,只要 4.9 及以上版本均可直接开启:
uname -r
关闭 BBR
若想要关闭 bbr 加速也很简单,只需要将第二步的返回内容在 sysctl.conf 内删除或注释掉即可。
1. 修改配置文件
vi /etc/sysctl.conf
进入配置文件,将添加的内容在最后,若找不到往下翻,按 i 键或 Insert 键开启编辑,注释或删除内容后,按 ESC 键退出编辑,键入
:wq
保存并退出。
2. 保存配置
sysctl -p
3. 重启系统生效
reboot
3. 查看是否已关闭 BBR
sysctl net.ipv4.tcp_available_congestion_control
install nginx on ubuntu install ubuntu usb install ubuntu 14.04 ubuntu install jd
Intel RealSense D435i Installation on Linux (Ubuntu 16.04 and Ubuntu 18.04)
1. Install 3rd-party dependencies
1.1 apt-get update
sudo apt-get update
- 1
1.2 install libusb-1.0, libglfw, freeglut,
sudo apt-get install libusb-dev libusb-1.0-0-dev libglfw3 libglfw3-dev freeglut3 freeglut3-dev