标签:rpm usr 用户 exp seve oca oracle 创建 创建用户
1.挂载镜像,使用本地的yum源挂载iso镜像
/etc/yum.repos.d
touch CentOS-Media.repo
[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/ #挂载的路径
gpgcheck=1
enabled=1 #启用这个yum源
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum clean all
yum makecache
yum list 查看
2.oracle建好库之后,需要创建用户
sqlplus /nolog
conn / as sysdba;
查看用户
select * from all_users;
create user linan identified by linan;
更改密码
alter user linan identified by linan
授权dba用户
GRANT dba, connect, resource to linan;
授权普通用户
GRANT dba, connect, resource to linan;
commit;
conn username/password
3.jdk配置
jdk:
export JAVA_HOME=/usr/local/src/jdk1.7.0_79
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin
4.限制tomcat使用的内存
JAVA_OPTS="-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true"
标签:rpm usr 用户 exp seve oca oracle 创建 创建用户
原文地址:http://blog.51cto.com/12473494/2316544