Recent Comments
Author Archives: fencatn
解决systemd’s start request repeated too quickly for xxx.service的办法
Linux: systemd’s start request repeated too quickly for xxx.service 转载自https://www.hiroom2.com/2017/02/18/linux-systemd-s-start-request-repeated-too-quickly-for-xxx-service/ Repeating “systemctl restart xxx” over 6 times in 10 seconds will cause error. This article will describe the workaround. Table of Contents 1. start request repeated too quickly for xxx.service 2. … Continue reading
Nextcloud安全检查时报错” HTTP header is not set to “no-referrer””解决方法
Nextcloud安全检查时报错 The “Referrer-Policy” HTTP header is not set to “no-referrer”, “no-referrer-when-downgrade”, “strict-origin” or “strict-origin-when-cross-origin”. This can leak referer information. 这个是NextCloud新版本提升了安全要求,解决方法就是添加对应的标记 server { # Configuration add_header Referrer-Policy no-referrer always; } 完成之后重启nginx,问题解决。 这个官方论坛上有说明,多去看看 https://help.nextcloud.com/t/the-referrer-policy-http-header-is-not-set-to-no-referrer/36613
Nextcloud报错”You are using a fallback implementation of the intl extension.“解决方法
NextCloud安装最新的14版本报错 You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /usr/share/nginx/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18 原因是因为php缺组件intl,装上就可以了 [root@fencatn conf.d]# yum install -y php71w-intl Loaded plugins: fastestmirror base | 3.6 kB 00:00 epel/x86_64/metalink | 8.9 kB … Continue reading
NextCloud的调优及安全配置
一、添加缓存 缓存你可以选择memcached或者redis,注意选择一种就可以,不是大型实例,多了也没什么用 1、添加memcached [root@fencatn ~]# yum install -y memcached Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cqu.edu.cn * epel: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com * webtatic: uk.repo.webtatic.com Resolving Dependencies –> Running transaction check —> … Continue reading
Nextcloud(CentOS 7)安装与配置(LNMP平台)
这篇文章主要介绍CentOS 7 LNMP平台上部署nextcloud的方法,具体的调优和内网穿透,请参照后面的文章 一、环境准备 1、准备Yum源 先安装必须的yum源,centos自带的BASE/EXTRAS/UPDATES必须齐全,同时安装fedora的epel,源不够的自行百度装好。 [root@ftpserver ~]# yum install -y epel* Loaded plugins: fastestmirror base | 3.6 kB 00:00 epel/x86_64/metalink | 8.9 kB 00:00 epel | 3.2 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 … Continue reading
NextCloud(CentOS7)官方安装手册
来源于https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html# Installation on Linux If there are no packages for your Linux distribution, you have the option to install Snap Packages. See Installing via Snap packages In case you prefer installing from the source tarball, you can setup Nextcloud from scratch using … Continue reading
NextCloud(Nginx)官方配置文件
来源于https://docs.nextcloud.com/server/14/admin_manual/installation/nginx.html Nginx configuration This page covers example Nginx configurations to use with running an Nextcloud server. This page is community-maintained. (Thank you, contributors!) You need to insert the following code into your Nginx configuration file. Adjust server_name, root, ssl_certificate and ssl_certificate_key to suit your needs. Make sure … Continue reading
Hadoop Day01 安装Hadoop及其配置
1 案例1:安装Hadoop 1.1 问题 本案例要求安装单机模式Hadoop: 单机模式安装Hadoop 安装JAVA环境 设置环境变量,启动运行 1.2 步骤 实现此案例需要按照如下步骤进行。 步骤一:环境准备 1)配置主机名为nn01,ip为192.168.1.21,配置yum源(系统源) 备注:由于在之前的案例中这些都已经做过,这里不再重复,不会的学员可以参考之前的案例 2)安装java环境 [root@nn01 ~]# yum -y install java-1.8.0-openjdk-devel [root@nn01 ~]# java -version openjdk version “1.8.0_131″ OpenJDK Runtime Environment (build 1.8.0_131-b12) OpenJDK 64-Bit Server VM (build 25.131-b12, mixed … Continue reading
ELK发送数据报错 curl: (35) Encountered end of file
[root@kibana ~]# curl -X “POST” “https://192.168.1.61:9200/_bulk” –data-binary @shakespeare.json curl: (35) Encountered end of file 这个原因完全是疏忽大意了,很简单,因为服务器443端口没开放。 其实就是因为我把http打成了https。改成http发送就对了
qemu-kvm: CPU feature spec-ctrl not found
今天我在准备虚拟机环境的时候,遇到了一个故障,kmv报错如下 internal error: process exited while connecting to monitor: 2018-11-28T16:04:46.324652Z qemu-kvm: CPU feature spec-ctrl not found 具体的意思,就是CPU架构不支持spec-ctrl,于时我各种查资料,抱着一线希望查了一下百度,那么结果可能大家都知道,百度没什么卵用,最后还是去google上面去查,找到了答案: 原因就是我之前更新了linux,但是新版本的KVM/LIBVIRT/QEMU之间的版本兼容性出现了问题,之前旧版本的XML文件,新版本居然不认识了,重现修改CPU的配置如下: 修改前 <cpu mode=’custom’ match=’exact’ check=’partial’> <model fallback=’allow’>Haswell-noTSX-IBRS</model> </cpu> 修改后 <cpu mode=’custom’ match=’exact’ check=’partial’> <model fallback=’allow’>Haswell-noTSX</model> </cpu> 改完,收工,重新define,一切正常。 以下是这个小哥的原文,链接是 http://blog.lick-me.org/2018/05/failed-to-start-domain-host-cpu-does-not-provide-required-features-spec-ctrl/ “Failed to start … Continue reading