随笔分类 -  Linux

摘要:wget http://download.redis.io/releases/redis-4.0.0.tar.gztar zxf redis-4.0.0.tar.gzcd redis-4.0.0make 修改配置文件基本项port 11203pidfile /var/run/redis_11203. 阅读全文
posted @ 2019-11-29 13:38 阡尘小陌 阅读(116) 评论(0) 推荐(0)
摘要:1、分割nginx日志vim /etc/logrotate.d/nginx/var/log/nginx/*log { create 0644 nginx nginx rotate 10 missingok notifempty compress sharedscripts postrotate /b 阅读全文
posted @ 2019-11-29 13:34 阡尘小陌 阅读(586) 评论(0) 推荐(0)
摘要:一、安装Nginx 下载地址:http://nginx.org/download/nginx-1.8.0.tar.gz 安装依赖库 yum -y install gd-devel libtool libjpeg-devel libpng-devel freetype-devel libxml2 li 阅读全文
posted @ 2018-12-17 16:20 阡尘小陌 阅读(424) 评论(0) 推荐(0)
摘要:1、安装jdk wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/j 阅读全文
posted @ 2018-12-17 15:50 阡尘小陌 阅读(157) 评论(0) 推荐(0)
摘要:编辑 /etc/init.d/nginx 添加一下内容 根据路劲修改。 添加可执行权限 chmod +x /etc/init.d/nginx 开启自启 chkconfig nginx on #!/bin/sh## nginx - this script starts and stops the ng 阅读全文
posted @ 2018-12-17 15:36 阡尘小陌 阅读(482) 评论(0) 推荐(0)