- 浏览: 223197 次
- 性别:
- 来自: 广东
文章分类
最新评论
-
wangmuchang:
解压需要密码
CAS单点登录之测试应用 -
ayang722:
首先就要在运行报表birt的IEngineTask中加入, J ...
birt配置动态数据源 -
lihong11:
very good!
js常用方法 -
qtlkw:
你共享出来为什么要密码?要密码为何要共享出来?汗
CAS单点登录之测试应用 -
lishouxinghome:
请问如何获得用户的Id呢,往指点
使用 CAS 在 Tomcat 中实现单点登录
版本:red hat的企业版本5、fedora12、ubuntu9.10、centOS5.4
现在记录的是centOS5.4系统环境。
终端里面的命令:
1. pwd 查看当前路径;env 查看环境变量;su – (username) 切换用户(不加username默认切换到root用户); ./代表当前目录下
2. tar -zxvf ****.tar.gz 解压tar.gz文件;
3. tar -jxvf ****.tar.bz(或bz2) 解压tar.bz文件;
cd 进入文件夹命令;cd ..向上文件夹命令;
4. configure 检测源代码命令;make编译命令;make install安装命令;
5. chmod +x ******.bin(中间是字母x,小写)给文件加上可执行属性;*****.bin文件可直接执行。
6. xhost +是使所有用户都能访问Xserver
7. rpm -ivh --force --nodeps **.rpm为强制安装一个rpm文件。 yum upgrade 加应用程序名可进行升级。
8. /sbin/ifconfig查看本机ip
Linux下的遇到的问题
1. 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了
解决办法:切换到su – root;然后执行xhost +;接着export DISPLAY=:0.0即可。调用时钟进行测试xclock
2. 找不到包的情况可到这个网站下载:http://www.rpmfind.net/linux资源文件网站
3. error while loading shared libraries: cannot restore segment prot after reloc: Permission denied
在linux上安装有些东西时会出现 Permission denied 的情况:
编辑/etc/selinux/config,找到这段:
SELINUX=enforcing
把 SELINUX=enforcing 注释掉:#SELINUX=enforcing ,然后新加一行为:
SELINUX=disabled
保存,关闭。
编辑/etc/sysconfig/selinux,找到:
SELINUX=enforcing
如果SELINUX已经是 SELINUX=disabled,那么就不用改了,
否则就把SELINUX=enforcing 注释掉,新加一行:
SELINUX=disabled
保存,退出。
如果你碰到其他类似提示:
cannot restore segment prot after reloc: Permission denied
哪应该是SELinux的问题,可以考虑把它关闭。
把SELinux关闭后还是不行.在你保证SElinux 被disable后.还执行下
chcon -t texrel_shlib_t
如: chcon -t texrel_shlib_t /路径/路径/名字.so (这个文件视具体执行文件.)
以上两步.已经解决了很多server的问题了.
4. Oracle Error : SP2-0667 Message file facility.msb not found。Cause: The SP1, SP2, or CPY message file could not be found. SQL*Plus cannot run.
Action: Check the Oracle platform specific documentation to make sure SQL*Plus is installed correctly. This may occur because the ORACLE_HOME environment variable or registry equivalent is not set to the location of the Oracle software. Make sure this value is set correctly. Check that the SQL*Plus binary message files exist in the SQL*Plus message directory, for example $ORACLE_HOME/sqlplus/mesg. Check the value of NLS_LANG environment variable or registry equivalent is correct.
5.
Linux下安装oracle记录
1.Creating the Oracle Inventory Group
If the oraInst.loc file does not exist, then create the Oracle Inventory group by entering the following command:
# /usr/sbin/groupadd oinstall
2.Creating the OSDBA Group for Database Installations
If the OSDBA group does not exist or if you require a new OSDBA group, then create it as follows. In the following procedure, use the group name dba unless a group with that name already exists:
# /usr/sbin/groupadd -g 502 dba
3. Creating an OSOPER Group for Database Installation
If you require a new OSOPER group (typically, oper), then create it as follows. In the following, use the group name oper unless a group with that name already exists:
# /usr/sbin/groupadd -g 505 oper
4. Creating the OSASM Group for Automatic Storage Management
If the OSASM group does not exist or if you require a new OSASM group, then create it as follows. In the following procedure, use the group name asmadmin
unless a group with that name already exists:
# /usr/sbin/groupadd -g 504 asmadmin
5. Creating the OSDBA Group for Oracle Grid Infrastructure
If you require a new OSDBA group for Oracle grid infrastructure, then create it as follows. In the following procedure, use the group name asmdba
unless a group with that name already exists:
# /usr/sbin/groupadd -g 506 asmdba
6. Creating the OSOPER Group for Automatic Storage Management
If you require an OSOPER group, then create it as follows. In the following procedure, use the group name asmoper
unless a group with that name already exists:
# /usr/sbin/groupadd -g 507 asmoper
7. Creating an Oracle Software Owner User
If the Oracle software owner user does not exist, or if you require a new Oracle software owner user, such as oracle
or grid
, then create it as described in this section (in this case to create the oracle
user).
In the following procedure, use the user name oracle
unless a user with that name already exists:
To create an oracle
user, enter a command similar to the following:
# /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba,[oper] oracle
In the preceding command:
The -u option specifies the user ID. Using this command flag is optional, as you can allow the system to provide you with an automatically generated user ID number. However, you must make note of the oracle
user ID number, as you require it later during preinstallation.
The -g
option specifies the primary group, which must be the Oracle Inventory group--for example, oinstall
The -G
option specifies the secondary groups, which must include the OSDBA group, and, if required, the OSOPER and ASMDBA groups. For example: dba
, or asmdba,oper
Set the password of the oracle
user:
# passwd oracle
Modifying an Existing Oracle Software Owner User
If the oracle
user exists, but its primary group is not oinstall
, or it is not a member of the appropriate OSDBA or OSOPER groups, then enter a command similar to the following to modify it. Specify the primary group using the -g
option and any required secondary group using the -G
option:
# /usr/sbin/usermod -g oinstall -G dba,asmdba[,oper] oracle
8. Checking Memory and Swap Space
Oracle says that the system must have at least 512MB of RAM and 1GB of swap space or twice the size of RAM. And for systems with more than 2 GB of RAM, the swap space can be between one and two times the size of RAM. You might also want to check out Sizing Swap Space.
For test sake I tried to install an Oracle Database 10g (Type: General Purpose Database) on a little PC with 256MB of RAM and 1 GB of swap space. I was able to get a 10g database up and running on this little PC without a problem.
To check the size of physical memory, execute:
# grep MemTotal /proc/meminfo
To check the size of swap space, execute:
# grep SwapTotal /proc/meminfo
You also can add temporary swap space to your system by creating a temporary swap file instead of using a raw device. Here is the procedure:
# su - root
# dd if=/dev/zero of=tmpswap bs=1k count=900000
# chmod 600 tmpswap
# mkswap tmpswap
# swapon tmpswap
To disable the temporary swap space execute the following commands:
# su - root
# swapoff tmpswap
# rm tmpswap
9. Oracle Database Postinstallation Tasks
vi ~oracle/.bash_profile
echo $PATh
echo $ORACLE_PATH
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export ORACLE_OWNER=oracle
export DISPLAY=:0.0
source ~oracle/.bash_profile
xhost +
vi ~oracle/.bash_profile
ORACLE_HOME_LISTNER=$ORACLE_HOME
source ~oracle/.bash_profile
netmgr
dbca
sqlplus
dbstart
dbshut
startup
shutdown
发表评论
-
ssh框架加入atomikos分布式事务管理
2015-01-06 18:48 1284一、概念 分布式事务分布式事务是指事务 ... -
Spring 动态切换数据源
2014-05-09 14:30 3586一、开篇 这里整合分别采用了Hibernate和MyB ... -
Spring切入点表达式常用写法
2014-05-09 14:25 774自从使用AspectJ风格切面配置,使得Spring的切面配 ... -
Spring中线程池的应用
2014-03-24 11:03 855多线程并发处理起来通常比较麻烦,如果你使用spring容器来 ... -
Spring线程池开发实战
2014-03-24 11:02 716本文提供了三个Spring多线程开发的例子,由浅入深,由于例 ... -
JSch - Java实现的SFTP(文件上传详解篇)
2013-11-21 09:36 841JSch是Java Secure Channel的缩写。J ... -
JAVA线程池ThreadPoolExecutor
2013-07-17 14:45 867java.util.concurrent.ThreadPoo ... -
log4j.properties 使用说明
2013-05-29 10:54 777一、Log4j简介Log4j有三个主要的组件:Logger ... -
eclipse安装反编译插件(附jad下载)
2012-12-12 10:45 776一、eclipse反编译插件Jadclipse jadclip ... -
web.xml 配置404和500错误的自定义页面
2012-12-07 11:47 777web.xml <error-page>< ... -
java内存溢出
2012-06-28 18:57 831一、常见的Java内存溢出 ... -
List Set Map区别
2012-12-25 17:54 869List有序key和value都能重 ... -
Java 自定义Annotation(元数据、注解)
2011-08-05 11:50 1821Annotation在java的世界正铺天盖地展开,有空写这一 ... -
LOG4J properties 配置文件
2011-06-29 16:31 1126一、参数意义说明1、输出级别的种类 ERROR、 ... -
servlet输出一个文件
2010-11-10 18:33 1130String fileName= file.getName() ... -
关于RSS、RDF、ATOM和Feed
2010-11-02 09:48 1177RSS被不同的技术团体做不同的解释,分别有 Rich Site ... -
正确理解Traceback的含义
2010-11-02 09:44 968Traceback是Blog的一个重要 ... -
关于Serializable的serialVersionUID
2010-10-26 09:10 1718众所周知,当某class实现了Serializable接口 ... -
获得CLASSPATH之外路径的方法
2010-10-14 10:37 921URL base = this.getClass().getR ... -
操作properties文件
2010-10-14 10:30 774发个例子大家自己看哈.package control; im ...
相关推荐
linux学习宝典 学习的好帮手
学习心得LINUX 初步学习心得LINUX 初步学习心得LINUX 初步
初步学习Linux的人群
Linux初步,这本书很不错,很不错,很不错,适合在kindle上看。
今天用给Linux装mysql,费了好大功夫,最后还是用yum装的。用别的东西装,各种缺依赖,yum一下子就安装好了,真的是傻瓜式
Linux操作实验: 1. 初步了解Linux的命令格式; 2. 学习如何连接Linux系统; 3. 实习几个文件维护命令; 4. 学会如何得到帮助信息; 5. 练习几个最常用的命令。
对于linux pam.d文件的详细说明 ,是第一步的学习。 pam.d文件是一个Linux中相当的重要的权限控制方面。
linux初步介绍.pdf 学习资料 复习资料 教学资源
机器学习初步——TensorFlow在Linux操作系统下安装的整个过程(包括IDE) TensorFlow是一个基于数据流编程(dataflow programming)的符号数学系统,被广泛应用于各类机器学习(machine learning)算法的编程实现,...
的配置选项第7节安装Windows和Linux双系统第8节Linux下寻求帮助第9节文件相关命令初步第10节系统命令初步第11节用户及组管理初步第12节文件属性第13节文件夹属性及umask第14节Linux编辑器及VIM初步第15节Linux查找及...
初步学习Linux的学习经验,对于刚开始学习Linux系统的同学来说,是一份很好的资源
网络运维学习第一步,学习Linux基本操作命令,以及简单的shell脚本,还有搭建lamp环境,之后还会有后续哒
linux入门学习最好的课件!!!! 试验1安装和初步使用 试验2-1linux常用命令 试验2-2shell简介 试验3文件系统管理 试验4-1用户和组的管理 试验4-2进程管理 试验5linux-apache 试验6linux-DHCP 实验7linux-DNS
这个是整理出来的linux初学者的文档,主要是针对每部分初略的讲解。
【你真的了解Linux系统吗】带你初步认识Linux系统___Linux教程
Linux学习笔记,主要包括:LINUX下寻求帮助,文件相关命令,系统命令初步,Linux编辑器的使用,进程控制等
本文档主要是有关于Linux操作系统的初级试题,适合于大多数新手的教学成果检测,也可以用于对Linux操作系统学习的初步检验,如果本篇测试题的大部分题目都可以完成,也就具有了基本的Linux操作系统的知识。
Linux编辑器及VIM初步
初步学习linux可参考该课件..祝你学习愉快
linuxTest学习的好资料,对于初步学习者很有效果哦。