有些时候我们需要在服务器里设置一个脚本,让他一开机就自己启动。方法如下:cd /etc/init.dvi youshell.sh #将youshell.sh修改为你自己的脚本名编写自己的脚本后保存退出。在编写脚本的时候,请先加入以下注释#add for chkconfig#chkconfig: 23...
分类:
其他好文 时间:
2015-04-26 21:00:48
阅读次数:
122
chkconfig: chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。语法: chkconfig --list [name] chkconfig --add name chkconfig -...
分类:
其他好文 时间:
2015-04-26 20:58:18
阅读次数:
156
chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level ][系统服务...
分类:
系统相关 时间:
2015-04-26 01:12:21
阅读次数:
182
service vsftpd start 开启vsftpd
service vsftpd status 查看vsftpd状态
chkconfig --list vsftpd 查看在不同系统级别下的运行状态
chkconfig --level 35 vsftpd on 设置vsftpdz 3 5系统级别下自动开启
rpm -e --nodeps filename 强制卸载
rp...
分类:
数据库 时间:
2015-04-25 16:44:13
阅读次数:
266
安装mysql server#yum install mysql-server安装mysql client#yum install mysql设置服务自动启动#chkconfig --levels 235 mysqld on设置mysql root密码#/usr/bin/mysqladmin -u ...
分类:
数据库 时间:
2015-04-24 23:59:58
阅读次数:
333
假设VPS采用centos,再假设用较新版本6.5。VPS上可能没有安装桌面,但一般来说都会安装ssh,并且防火墙默认开放22端口。那就从ssh开始。# 安装ssh,默认已安装好# yum install ssh# 启动ssh服务器端# service sshd start# chkconfig s...
分类:
其他好文 时间:
2015-04-24 18:17:06
阅读次数:
122
豆子公司最近打算把内网的Exchange服务都转到Office365上去。前面豆子已经配置了Nagios直接转发http://beanxyz.blog.51cto.com/5570417/1630221针对一些其他的设备和服务,例如打印机或者WSUS,这些设备和服务不支持加密的邮件传输,因此必须使用内部的smtp中继才行。简单的说..
分类:
其他好文 时间:
2015-04-24 16:33:29
阅读次数:
243
下面是一个Shell脚本,用于管理Redis进程(启动,停止,重启),这个脚本可供参考。#!/bin/sh## redis - this script starts and stops the redis-server daemon## chkconfig: - 85 15# descriptio....
分类:
系统相关 时间:
2015-04-22 11:17:53
阅读次数:
193
1.查看端口使用情况 netstat -apn | grep 8080 关闭端口: kill -9 进程id2.关闭防火墙及selinux (防火墙)重启后永久生效:chkconfig iptables on/off 即时生效:service iptables start/stop (se...
分类:
系统相关 时间:
2015-04-21 20:26:22
阅读次数:
220
服务器信息如下
外网服务器:eth0:公网IP
eth1:内网IP(192.168.10.205)
公网对外提供服务,内网IP与内部局域网通信。
配置过程:
(1)开启iptables
service iptables restart (临时开启)
chkconfig iptables on...
分类:
系统相关 时间:
2015-04-20 21:01:35
阅读次数:
178