1. 创建tomcat用户useradd -r -m -d /usr/local/tomcat7 -s /sbin/nologin tomcat2.将下面脚本命名为tomcat7 放入/etc/init.d/文件夹下即可#!/bin/bash## tomcat7 This shell scr...
分类:
系统相关 时间:
2015-04-08 12:23:54
阅读次数:
188
错误信息: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! /sbin/ifup eth1 Stdout from the command: Stderr from the command: stdi...
今天教大家如何在redhat上装jdkchmod755jdk-1.6.0安装包.rpm付权限rpm-ivhjdk-1.6.0安装包.rpm安装rpm包vi.bashrc设置环境变量JAVA_HOME=/usr/java/jdk1.7.0_11;exportJAVA_HOMEPATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH:/usr/sbin;exportPATHLANG=zh_CN.GB18030LANGUAGE=zh_CN..
分类:
其他好文 时间:
2015-04-08 11:08:39
阅读次数:
127
一、安装yum-yinstallsquid主程序:/usr/sbin/squid配置目录:/etc/squid主配文件:/etc/squid/squid.conf监听tcp端口号:3128默认访问日志文件:/var/log/squid/access.log二、配置1、vi/etc/squid/squid.conf找到http_accessdenyall,将其注释掉在最后添加:http_accessallow..
分类:
其他好文 时间:
2015-04-07 20:05:51
阅读次数:
190
YARN的Shell操作与管理7.1启动YARNYARN有2个守护线程:ResourceManager、NodeManager。[hadoop@localhosthadoop-2.2.0]$sbin/yarn-daemon.shstartresourcemanager[hadoop@localhosthadoop-2.2.0]$sbin/yarn-daemon.shstartnodemanager7.2YARNWeb管理界面YARN管理地址:Resource..
分类:
其他好文 时间:
2015-04-07 19:59:25
阅读次数:
305
# 热插拔实现原理及过程:
# 在/etc/init.d/rcS文件中有句:echo /sbin/mdev > /proc/sys/kernel/hotplug
# 那么当有热插拔事件产生时,内核就会调用位于/sbin目录的mdev
# 这时mdev通过环境变量中的 ACTION 和DEVPATH(这两个变量是系统自带的)来确定此次热插拔事件的动作以及影响了/sys中的那个目录
# 接着会看看这个目录中是否有“dev”的属性文件,如果有就利用这些信息为这个设备在/dev 下创建设备节点文件。...
分类:
系统相关 时间:
2015-04-07 19:43:33
阅读次数:
364
通过apt-get install 安装nginx和spawn-fcgi/usr/local/nginx/sbin/spawn-fcgi -a 127.0.0.1 -p 9002 -C 25 -f/usr/local/nginx/cgibin/lzgFastCGI参数含义如下:-f 指定调用Fast...
分类:
编程语言 时间:
2015-04-07 19:20:56
阅读次数:
162
[root@localhost?opt]#?useradd?-s?/sbin/nologin?mysql
[root@localhost?opt]#?yum?install?libtermcap-devel?#mysql?所需包
[root@localhost?opt]#?tar?zxf?mysql-5.1.52.tar.gz?
[root@localh...
分类:
数据库 时间:
2015-04-06 21:57:03
阅读次数:
211
1》以下皆使用root用户执行/usr/sbin/groupadd-g501oinstall
/usr/sbin/groupadd-g502dba
/usr/sbin/groupadd-g503oper
/usr/sbin/groupadd-g504asmadmin
/usr/sbin/groupadd-g505asmoper
/usr/sbin/groupadd-g506asmdba
/usr/sbin/useradd-goinstall-Gdba,asmdba,operoracle
/..
分类:
数据库 时间:
2015-04-06 06:31:53
阅读次数:
171
Linux系统的文件系统结构/:文件系统结构的起始点
/home:用户主目录
/bin:标准指令和工具程序
/usr :系统使用文件和指令
/usr/bin:用户命令和工具程序
/usr/sbin:系统管理员命令
/usr/lib:编程语言库
/usr/doc:Linux文档
/usr/man:在线联机帮助手册
/usr/spool:假脱机文件
/sbin:管理员开启系统的命令...
分类:
系统相关 时间:
2015-04-05 14:40:17
阅读次数:
226