Centos6.5搭建java开发环境配置详解

2019-10-13 14:06:04刘景俊

2.3 添加内容到 rc.local中

#vi /etc/rc.d/rc.local 

把下面内容加入到文件中

su oracle -lc "/opt/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start" 
su oracle -lc "/opt/oracle/product/11.2.0/dbhome_1/bin/dbstart" 

Esc:wq! 

大功告成!

五、其他
Linux更新源:https://lug.ustc.edu.cn/wiki/mirrors/help/centos
1.以root身份进入yum源配置目录

su root
cd /etc/yum.repos.d/

2.备份系统自带的yum源

mv CentOS-Base.repo CentOS-Base.repo.bak

3.下载对应版本的科大yum源,放入放入/etc/yum.repos.d/

也可以wget http://centos.ustc.edu.cn/Centos-Base.repo (不过这种方法个人感觉不好确定源版本)

4.更新完源之后,生成缓存,使操作立即生效

yum makecache

5.开始更新

yum update

安装中文输入法

1.以root身份安装

su root
yum install "@Chinese Support"

2.设置把刚刚安装的输入法添加到输入法列表中

点击system-->preferences-->Input Method。再点击“Enable input method feature”,勾选“启用输入法特性”,并选择"Use IBus(recommended)",点击“首选输入法”

点击 "Input Method Preferences" ,点击输入法选项卡,选择汉语,在列表中选择拼音(当然,你会其他的输入法也可以选择其他的),点击"add",将选中的输入法添加到输入法列表

3.reboot

finished! Have fun!

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易采站长站。