![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 65
Json_M
怀旧是什么情怀~
展开
-
你啊,too young, too naiveproxy
too young too naive!原创 2023-03-03 17:24:46 · 745 阅读 · 0 评论 -
shell 小结
文章目录语法(syntax)1. 自定义语法 (Custom syntax)2. 系统语法 (system syntax)3. 返回值语法(return value syntax)表达式(expression)1. 命令表达式(command expression)2. 数学表达式(math expression)3. 字符串表达式(string expression)4. 文件判断表达式(Fil...原创 2018-10-08 14:24:02 · 233 阅读 · 0 评论 -
Centos 下用 rsync 定时同步传输
1. 资源端服务器A操作1. 设置rsync配置编辑 /etc/rsyncd.conf# /etc/rsyncd: configuration file for rsync daemon mode# See rsyncd.conf man page for more options.# configuration example:uid = nobodyport = 873...原创 2018-08-15 09:27:18 · 2135 阅读 · 0 评论 -
CentOS7 安装NGINX1.17, PHP7.3, MySQL5.7 (lnmp)
1.install Nginx1.1 安装依赖yum -y install gcc gcc-c++ autoconf automake makeyum -y install zlib-devel1.2 下载,解压,编译wget http://nginx.org/download/nginx-1.15.0.ziptar -zxvf nginx-1.15.0.ta...原创 2018-06-28 15:44:26 · 2002 阅读 · 2 评论 -
PHP页面静态化
1.流程动态语言流程graph LRA[syntax]-->B[complie]B-->C[run]C-->D[show]动态程序执行顺序graph LRA[ConnectDB]-->B[Get Date]B-->C[file Template]C-->D[Show]静态页面展示graph LRrun--...原创 2018-06-27 15:44:49 · 173 阅读 · 0 评论 -
CentOS 环境下 搭建 LNMP环境
1- ENV关掉防火墙,避免实验中出现服务器无法访问的情况chkconfig iptables off安装LNMP环境所需的开发包和库文件yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b fr...原创 2018-05-15 14:16:33 · 162 阅读 · 0 评论 -
Linux服务器的简单安全配置
一、 禁用root以外的超级用户1.检测方法:cat /etc/passwd 查看口令文件,文件格式如下login_name:password:user_ID:group_ID:comment:home_dir:command若user_ID=0,则该用户拥有超级用户的权限。查看此处是否有多个ID=02.检测命令:cat /etc/passwd | awk...转载 2018-03-20 13:58:42 · 491 阅读 · 0 评论 -
详解LVS负载均衡之三种工作模型原理和10种调度算法
LVS负载均衡原理和算法详解Internet的快速增长使多媒体网络服务器面对的访问数量快速增加,服务器需要具备提供大量并发访问服务的能力,因此对于大负载的服务器来讲,CPU、I/O处理能力很快会成为瓶颈。由于单台服务器的性能总是有限的,简单的提高硬件性能并不能真正解决这个问题。为此,必须采用多服务器和负载均衡技术才能满足大量并发访问的需要。Linux 虚拟服务器(Linux Virtual S...转载 2018-03-20 12:15:12 · 310 阅读 · 0 评论 -
申请腾讯免费个人SSL && 配置 https
申请免费1年SSL文件 1- 首先去腾讯云申请 2- 然后解析域名获取认证 3- 下载.key和.crt 两个文件.配置SSL方法1: 按照腾讯云有个问题. 如果root放html默认是在/usr/localhost/nginx/html目录下,如果换目录提示403server { listen 443; server_name www.domain原创 2017-10-21 14:43:21 · 1615 阅读 · 0 评论 -
Liunx常用命令
1、cd命令这是一个非常基本,也是大家经常需要使用的命令,它用于切换当前目录,它的参数是要切换到的目录的路径,可以是绝对路径,也可以是相对路径。如: cd /root/Docements # 切换到目录/root/Docements cd ./path # 切换到当前目录下的path目录中,“.”表示当前目录 cd ../path # 切换到上层目录中的pat原创 2017-10-18 11:05:25 · 327 阅读 · 0 评论 -
部署AlphaSSL
泛域名 SSL 证书,就是含有通配符的域名 SSL 证书,如 *.https://github.com,效果点左上角的绿锁看证书详情,申请之后可用一年。1.生成 csr到这个网站申请https://www.digicert.com/easy-csr/openssl.htm Loading 'screen' into random state - doneGenerating a 2048 bit原创 2017-09-11 15:32:43 · 997 阅读 · 0 评论 -
让Ubuntu 16.04可以压缩/解压缩RAR文件
在Ubuntu 16.04下经常要用到压缩/解压缩RAR文件, 每次都是网上搜索教程,而且都没有详细解析每个命令的具体用法,现在详细记下方法,以备再次用的时候方便的找到。因为 参数 e 和 x 经常用错,特意记录在此。Ubuntu刚安装的时候是不能解压rar文件的,只有在安装了解压工具之后,才可以解压。安装和卸载安装:sudo apt-get install unrar卸载:sudo apt-ge转载 2017-09-10 10:45:20 · 566 阅读 · 0 评论 -
Nginx 提示500 ,设置提示具体错误
在入口文件index.php头部加上error_reporting(E_ALL);ini_set('display_errors', 'On');然后重启服务器即可.原创 2017-09-09 16:47:04 · 2176 阅读 · 1 评论 -
Domain is currently unable to handle this request (open_basedir)
下载Yii2 安装包到Liunx,发现如果用localhost/basic/web是可以访问但是如果用www.basic.com就访问不了.页面会提示500,如下www.basic.com is currently unable to handle this request然后上Stack Overflow找了下发现只要修改下php.ini(注意保存源文件) 修改下面2个位置display_err原创 2017-08-20 21:48:52 · 4021 阅读 · 1 评论