重启后生效开启: chkconfig iptables on关闭: chkconfig iptables off 或者 /sbin/chkconfig --level 2345 iptables off2) 即时生效,重启后失效service 方式开启: service iptables start...
分类:
系统相关 时间:
2015-07-20 06:55:30
阅读次数:
145
1、在/etc/init.d/目录下编写脚本,名为nginx 1 #!/bin/sh 2 # 3 # nginx - this script starts and stops the nginx daemon 4 # 5 # chkconfig: - 85 15 6 # d...
分类:
其他好文 时间:
2015-07-17 22:32:14
阅读次数:
165
鸟哥Linux服务器篇学习总结作者:Danbo时间:2015-7-17在runlevel3启动级别下默认启动网络挂载(autofs)机制,我们可以通过命令将其关闭:chkconfig autofs off 或者 /etc/init.d/autofs stop将其关闭。查询启动在网络监听的服务:net...
分类:
系统相关 时间:
2015-07-17 20:19:41
阅读次数:
181
需要组件:
Apache
PHP
Mysql
phpMyAdmin
Apache
0. yum install httpd
1. 确认版本
$ httpd -v
2. 启动apache
$ sudo service httpd start (http://xxx.xxx.xxx.xxx shows apache info)
3.设定自动启动(optional)
$ sudo chkconfig ...
分类:
Web程序 时间:
2015-07-17 00:30:56
阅读次数:
159
一.Linux下开启/关闭防火墙命令1) 永久性生效,重启后不会复原开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后复原开启: service iptables start关闭: service iptables stop在...
分类:
系统相关 时间:
2015-07-14 13:14:17
阅读次数:
171
1.设置sshd服务开机启动[root@centos ~]# chkconfig sshd on查看sshd开机启动状态[root@centos ~]# chkconfig --list|grep SSHD 2.查看sshd服务状态[root@centos ~]# service sshd stat...
分类:
系统相关 时间:
2015-07-12 01:36:30
阅读次数:
314
配置linux基本环境: -->java、ip、hostname、hosts、iptables、chkconfig、ssh环境配置hadoop2.2安装在linux64位机器上,需要对源码进行编译: 首先安装google的protobuf yum install glibc-he...
分类:
其他好文 时间:
2015-07-11 08:59:52
阅读次数:
140
FTP服务器简介FTP服务器是提供文件存储和访问服务的服务器,通过ftp(文件传输协议)实现数据传输,而且FTP是仅基于TCP的服务,不支持UDP。FTP应用是一种C/S架构的应用,客户端和服务器端都需要安装相关的软件才能实现相互之间的数据传输。常见的软件套件有FileZilla,Server-U..
分类:
数据库 时间:
2015-07-10 00:31:41
阅读次数:
213
1、查看是否安装Apache,命令: rpm -qa httpd 2、yum install httpd ,yum安装Apache3、chkconfig httpd on service httpd start 启动软件遇到的问题1、启动Apache报错,httpd: Could not relia...
分类:
Web程序 时间:
2015-07-09 19:44:09
阅读次数:
237
注意:service的安装目录在/etc/rc.d/init.d下,/etc/init.d 是/etc/rc.d/init.d的链接。chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法...
分类:
系统相关 时间:
2015-07-04 16:43:21
阅读次数:
218