1、设置redis.conf中daemonize为yes,确保守护进程开启。 2、编写开机自启动脚本 脚本内容如下: 按 Ctrl+C 复制代码 # chkconfig: 2345 10 90 # description: Start and Stop redis PATH=/usr/local/b ...
分类:
系统相关 时间:
2019-01-13 12:27:25
阅读次数:
209
#!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is a high-performance ... ...
分类:
系统相关 时间:
2019-01-11 17:16:42
阅读次数:
166
1.切换到root用户 2.查看是否安装vsftp,我这个是已经安装的。 3.如果没有发现,则安装。 4.启动vsftpd服务,以及重启命令(centos7.0以上版本) 低版本试一下这些命令: 设置自启:chkconfig vsftpd on 5.测试一下能否登录FTP了,先安装一个ftp客户端组 ...
分类:
其他好文 时间:
2019-01-09 13:38:34
阅读次数:
215
问题描述 Ubuntu 16.04 下部署 Nginx 服务器,在添加 nginx 服务时出现如下信息 问题原因 Ubuntu 中 已经被 所替代, 命令如下: 问题解决 ...
分类:
其他好文 时间:
2019-01-08 01:01:09
阅读次数:
252
一、安装 安装:yum install samba 设置开机自启:chkconfig --level 3 smb on 开启服务:service smb start 测试: 点击确定后弹出登录对话框,表示安装和服务启动成功。 二、更改配置文件 打开配置文件:vim /etc/samba/smb.co ...
如果没出现这个界面,那么就需要安装memcache数据库。 在centos下安装也是非常简单的。 yum -y install memcached 该命令用来安装memcached,不必关心其中各个安装包之间的依赖。命令执行结果如下图所示: 配置memcache数据库参数: 1、chkconfig ...
分类:
系统相关 时间:
2019-01-06 11:19:19
阅读次数:
210
1.查看防火墙对外开放了哪些端口 2.centos6.0防火墙操作: 配置文件:/etc/sysconfig/iptables 开启某个端口号有两种方式:一种是命令方式,一种是修改配置文件方式 查看防火墙状态:chkconfig iptables --list 开启防火墙(重启后永久生效):chkc ...
分类:
其他好文 时间:
2019-01-03 20:10:35
阅读次数:
216
CentOS 7.0设置防火墙 CentOS 7.0默认使用的是firewall作为防火墙, 使用systemctl来管理服务和程序,包括了service和chkconfig 1、查看默认防火墙状态(关闭后显示not running,开启后显示running) [root@localhost ~] ...
分类:
其他好文 时间:
2019-01-01 18:56:26
阅读次数:
254
1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : ...
分类:
其他好文 时间:
2018-12-25 11:26:47
阅读次数:
131
#!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: NGINX is an HTTP(S) server, HTTP(S) reverse ... ...
分类:
其他好文 时间:
2018-12-23 11:01:49
阅读次数:
130