Linux服务
Smallwhite of SI
这个作者很懒,什么都没留下…
展开
-
FastDFS和nginx实现动态缩略
一、安装前准备配置环境为CentOS Linux release 7.6.1810,内核为Linux version 3.10.0-957.1.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) )group1的IP为192.168.10...原创 2019-01-04 21:47:27 · 303 阅读 · 0 评论 -
Ntp服务
配置一个ntp客户端一个ntp服务器安装ntp:yum –y install ntp配置ntp配置文件vim /etc/ntp.conf在# the administrative functions.这句话下添加restrict 192.168.10.134 nomodify notrap nopeer noquery在#restrict 192.168.1.0 mask ...原创 2019-01-04 21:58:41 · 247 阅读 · 0 评论 -
nginx实现目录索引
vim /data/server/nginx/conf/nginx.configlocation ~ ^/Installation package(/.*){ autoindex on; #开启 autoindex_localtime on; #开启显示功能}需要在/data/server/nginx/html目录下创建Installation pac...原创 2019-01-04 22:01:36 · 834 阅读 · 0 评论 -
Centos7搭建redis一主多从启用哨兵
准备工作需要准备4台配置一样的Centos7,其中作为master的IP为192.168.1.154作为slave的IP为:192.168.1.151192.168.1.152192.168.1.153将下载的redis-4.0.6.tar.gz文件移动到/usr/local/src/目录下编译安装rediscd /usr/local/srctar -zxvf re...原创 2019-01-05 12:46:16 · 397 阅读 · 0 评论 -
lnmp脚本部分
自己写的shell脚本,下载地址:https://download.csdn.net/download/qq_40476230/10896709附上部分shell代码:function nginx_install(){#编译nginxgroupadd -r wwwuseradd -r -g www wwwcd /usr/local/srctar -zxvf nginx-1.14...原创 2019-01-05 12:52:44 · 267 阅读 · 0 评论