随笔分类 - linux
摘要:server { listen 80; listen [::]:80; server_name lnmp.org www.lnmp.org; root /home/wwwroot/nextcloud; add_header X-Content-Type-Options nosniff; add_he
阅读全文
摘要:在CentOS 7系统上安装PHP 7.4版本的方法 聚石成磊 2020-06-13 16:45:03 3963 收藏 文章标签: centos php linux 版权 本文介绍在CentOS 7操作系统上安装PHP 7.4版本的方法。当前PHP 7.4.0RC1版本已经发布,供开发人员和用户测试
阅读全文
摘要:【Docker】Docker部署安装yapi框架 1、启动 MongoDB docker run -d --name mongo-yapi mongo 2、获取 Yapi 镜像,版本信息可在 阿里云镜像仓库 查看 docker pull registry.cn-hangzhou.aliyuncs.c
阅读全文
摘要:download the rpm pkg of google-stablehttps://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm dependenciesyum install redhat-lsbyum
阅读全文
摘要:通过nginx转发,用外网连接阿里云的redis,报Unexpected end of stream的解决办法 一、在与redis同一个内网的服务器上A的nginx做了下面的设置 stream { upstream redis { server redis.rds.aliyuncs.com:6379
阅读全文
摘要:# # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # 这...
阅读全文
摘要:1.用PUTTYGEN.exe生成密钥,生成的时候鼠标在进度条下面的空白处移动,为什么?就理解成随机得厉害点吧。 2.保存私钥,请看下面的图片说明 3.把公钥的内容想办法放到用户目录的.ssh/authorized_keys文件里面去,用vi ~/.ssh/authorized_keys打开,然后点
阅读全文
摘要:~]# systemctl start mysql.service 要启动MySQL数据库是却是这样的提示 Failed to start mysqld.service: Unit not found 解决方法如下: 首先需要安装mariadb-server ~]# yum install -y m
阅读全文
摘要:rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
阅读全文
摘要:nginx服务器日志相关指令主要有两条,一条是log_format,用来设置日志格式,另外一条是access_log,用来指定日志文件的存放路径、格式和缓存大小,一般在nginx的配置文件中日记配置(/usr/local/nginx/conf/nginx.conf)。 nginx的log_forma
阅读全文
摘要:server { listen 80; server_name www.php12.cn php12.mama1314.com; root /var/www/shf; location / { index index.php index.html; } location ~ \.php$ { roo
阅读全文
摘要:shell > vim /usr/local/nginx-1.10.2/conf/vhost/auth.conf # 这是第三方认证服务器,认证逻辑使用的 PHP 代码 server { listen 80; server_name auth.server.com; location ~ \.php
阅读全文
摘要:准备工作 配置防火墙,开启80端口、3306端口 删除原有的 iptables , 添加合适的配置 rm -rf /etc/sysconfig/iptablesvi /etc/sysconfig/iptables 添加如下内容 : ################################ 添
阅读全文
摘要:配置yum源 追加CentOS 6.5的epel及remi源。 以下是CentOS 7.0的源。 使用yum list命令查看可安装的包(Packege)。 安装PHP5.6 yum源配置好了,下一步就安装PHP5.6。 用PHP命令查看版本。 在这里安装的版本是PHP5.6.0,细心的用户可能已经
阅读全文
摘要:查看PATH:echo $PATH以添加mongodb server为列修改方法一:export PATH=/usr/local/mongodb/bin:$PATH//配置完后可以通过echo $PATH查看配置结果。生效方法:立即生效有效期限:临时改变,只能在当前的终端窗口中有效,当前窗口关闭后就
阅读全文
摘要:一、下载完安装包,并解压 tgz(以下演示的是 64 位 Linux上的安装) 。 二、MongoDB 的可执行文件位于 bin 目录下,所以可以将其添加到 PATH 路径中: 为 MongoDB 的安装路径。如本文的 /usr/local/mongodb 。 三、创建数据库目录 MongoDB的数
阅读全文
摘要:MongoDB是一个面向海量文档存数据动态存储的NoSQL型数据库。是一个除了用于关系型数据库如MySQL,PostgreSQL数据库表格的格式,和微软SQL以外的一种数据模型存储形式。他的功能包括了:支持完全索引,复制,高可用性,并自动分片。 前期的工作 这里说明的这些指令是用于在一个单一的Cen
阅读全文
摘要:server { listen 80; # listen somename:8080; server_name www.php12.cn; root /var/www/html/phpcms; location / { #if (!-e $request_filename) { # rewrite
阅读全文
摘要:vsftpd配置文件详解 1.默认配置: 1>允许匿名用户和本地用户登陆。 anonymous_enable=YES local_enable=YES 2>匿名用户使用的登陆名为ftp或anonymous,口令为空;匿名用户不能离开匿名用户家目录/var/ftp,且只能下载不能上传。 3>本地用户的
阅读全文