0%

无效或已损坏的软件包 (PGP 签名)

现象

提示:无效或已损坏的软件包 (PGP 签名)。出现Keys错误,签名失败,导致 ArchLinux/Manjaro 无法正常升级或者安装软件。

方法1:

1
2
3
4
5
6
7
8
sud vim /etc/pacman.conf
...
[archlinuxcn]
SigLevel = Never #SigLevel的值改为 Never 或 Optional TrustAll
...


sudo pacman -Syu

方法2:
1,移除旧的keys
sudo rm -rf /etc/pacman.d/gnupg

阅读全文 »

Linux上的笔记软件和网盘–多平台同步解决方案

支持云同步的笔记客户端

nixnote2

Nixnote2是evernote的第三方客户端通过API接口实现同步,不会占用免费用户的同步设备数量。

wiznote

为知笔记,优良的跨平台笔记软件,支持多级目录和多标签,以及markdown,试用100天。

有道云笔记 YNote

阅读全文 »

Nginx 403 forbidden 问题全面解析

1
2
2020/07/16 15:48:34 [error] 2220#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.253.20, server: _, request: "GET / HTTP/1.1", upstream: "http://[::1]:8001/", host: "172.18.253.20"
2020/07/16 15:48:34 [error] 2221#0: *4 "/home/leion/www/nginx_server_8001/index.html" is forbidden (13: Permission denied), client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", host: "172.18.253.20"

上面的报错有两个问题,第一个是 nginx 负载均衡连接上游失败connect() failed (111: Connection refused)也就是本地 IPv6 地址所在端口访问不通,在 server{} 块下启用listen [::]:8001;即可。

第二个问题是本节的重点403 forbidden (13: Permission denied)

SELinux 状态

阅读全文 »

准备好deploy APP二进制包文件:

1
2
3
4
curl -L -O https//artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.tar.gz
curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-6.3.0.tar.gz
curl -L -O https://artifacts.elastic.co/downloads/kibana/kibana-6.3.0-linux-x86_64.tar.gz
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.3.0-linux-x86_64.tar.gz

创建普通用户:

阅读全文 »

准备好filebeat二进制包文件:

1
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.3.0-linux-x86_64.tar.gz

创建启动APP的用户:

1
id deploy &>/dev/null ; if [[ $? != "0" ]]; then useradd deploy; fi
阅读全文 »

1
2
3
4
5
6
7
cd ~

mkdir -pv ~/kafka/kafka-logs

curl -o kafka_2.12-1.1.0.tgz <https://mirrors.ustc.edu.cn/apache/kafka/1.1.0/kafka_2.12-1.1.0.tgz>

tar xvf kafka_2.12-1.1.0.tgz -C ~/kafka

修改配置文件:

阅读全文 »

准备好APP二进制包文件:

curl -L -O <https://artifacts.elastic.co/downloads/kibana/kibana-6.3.0-linux-x86_64.tar.gz>

创建启动APP的用户:

id deploy &>/dev/null ; if [[ $? != "0" ]]; then useradd deploy; fi

切换用户:

su - deploy

创建APP目录:

阅读全文 »

准备好ELK APP二进制包文件:

1
2
curl -L -O <https://artifacts.elastic.co/downloads/logstash/logstash-6.3.0.tar.gz>
wget <https://download.elastic.co/demos/logstash/gettingstarted/logstash-tutorial.log.gz>

创建普通用户:

1
id deploy &>/dev/null ; if \[[ $? != "0" ]]; then useradd deploy; fi

切换用户elk:

1
su - deploy

创建APP目录和数据目录:

阅读全文 »

1
2
3
mkdir -pv /opt/zookeeper/{zkdata,zkdatalog}
curl -o /opt/zookeeper-3.4.12.tar.gz http://mirrors.ustc.edu.cn/apache/zookeeper/stable/zookeeper-3.4.12.tar.gz
tar xvf /opt/zookeeper-3.4.12.tar.gz -C /opt/zookeeper/

cp /opt/zookeeper/zookeeper-3.4.12/conf/{zoo-example.cfg,zoo.cfg}

阅读全文 »