Linux启动ftp服务器530 Permission denied解决方法重新在虚拟机下安装了linux。现在我想启动linux自带的ftp服务器:#service vsftpd start 。如果想linux启动是自动启动ftp服务器:#chkconfig vsftpd on 。运行putty,...
分类:
系统相关 时间:
2015-05-18 12:45:32
阅读次数:
159
Linux运维第二阶段(十一)服务管理服务管理:RPM包默认安装的服务(独立的服务、基于xinetd服务)、源码包安装的服务。》独立的服务:启动:绝对路径,例:#/etc/rc.d/init.d/httpdstart;service命令启动#servicehttpdstart。自启动:#chkconfig--level2345httpdon|off;修改..
分类:
系统相关 时间:
2015-05-17 02:18:38
阅读次数:
206
#!/bin/bash#nginxStartupscriptfortheNginxHTTPServer#thisscriptcreateitbyjackbillowat2007.10.15.#itisv.0.0.2version.#ifyoufindanyerrorsonthisscripts,pleasecontactjackbillow.#andsendmailtojackbillowatgmaildotcom.#chkconfig:-8515#description:Nginxisahigh-perfo..
分类:
其他好文 时间:
2015-05-17 02:09:29
阅读次数:
142
1.1 设置ip地址
执行命令 service network restart
验证: ifconfig
1.2 关闭防火墙
执行命令 service iptables stop
验证: service iptables status
1.3 关闭防火墙的自动运行
执行命令 chkconfig ipt...
分类:
其他好文 时间:
2015-05-16 18:26:28
阅读次数:
140
安装nginx前,我们首先要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件。永久性关闭防火墙:chkconfig--level35iptablesoff## 注意中间的是两个英式小短线;重启如果是 CentOS 6 以上,RPM 地址为 ht...
分类:
其他好文 时间:
2015-05-15 19:33:22
阅读次数:
121
1、安装系统时+选包(最小化安装+ssh-server)
2、配置国内源或公司内部源
3、禁用开机不需要启动的服务(chkconfig或sysv-rc-conf)
4、根据项目情况修改系统内核参数/etc/sysctl.conf
5、根据项目情况修改系统文件描述符、堆栈等配置
6、禁止root远程登录、修改ssh端口为特殊端口..
分类:
其他好文 时间:
2015-05-14 20:40:33
阅读次数:
168
安装LNMP环境,PHP5.4.37版本安装成功,添加php-fpm服务到系统启动项时,报错servicephp-fpmdoesnotsupportchkconfig;php-fpm服务不支持chkconfig;编辑/etc/init.d/php-fpm启动脚本,打开之后是乱码,查找原因是拷贝php-fpm启动脚本文件错误。从同样环境下同样的php版本拷贝p..
分类:
Web程序 时间:
2015-05-13 13:08:51
阅读次数:
263
以下这段脚本:#! /bin/sh## chkconfig: - 55 45# description: The memcached daemon is a network memory cache service.# processname: memcached# config: /etc/sy....
分类:
系统相关 时间:
2015-05-13 12:35:06
阅读次数:
255
#!/bin/bash#chkconfig:-3021#description:httpservice.#SourceFunctionLibrary./etc/init.d/functions#NginxSettingsNGINX_SBIN="/usr/local/nginx/sbin/nginx"NGINX_CONF="/usr/local/nginx/conf/nginx.conf"NGINX_PID="/usr/local/nginx/logs/nginx.pid"RETVAL=0prog="Nginx..
分类:
其他好文 时间:
2015-05-12 01:48:23
阅读次数:
147
chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level ][系统服务...
分类:
其他好文 时间:
2015-05-10 22:03:19
阅读次数:
161