CentOS 操作系统开发环境搭建
1.操作系统版本
操作系统 | CentOS 6.2 |
语言 | 英语 |
安装方式 | U盘 |
配置 | Thinkpad X220i |
2.数据源更新
2.1: 增加163源 su - --输入密码 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak vi /etc/yum.repos.d/CentOS-Base.repo --vi 替换字符串: %s/^mirrorlist/#mirrorlist/g --vi替换字符串:%s/^baseurl=http://mirrorlist.centos.org/baseurl=http://mirrors.163.com/g --保存推出 wq; 2.2:增加MPRforge源 wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2.2.el6.rf.i686_64.rpm wget http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm --import RPM-GPG-KEY.dag.txt rpm -i rmpforge-release-0.5.2.2.el6.rt.i686_64.rpm yum install htop --测试 yum update 2.3.Another app is currently holding the yum lock 解决方法 rm -f /var/run/yum.pid /sbin/service yum-updatesd restart
3.中文字符集与中文输入法安装
3.1 安装字符集
su -
yum install "@Chinese Support"
3.2配置输入法
1.System-->Preferences-->Input Method ,选择“Use IBus(recommended)”;
2.单击“Input Method Preferences...”,选择“Input Method”tab,添加输入法;
3.reboot
4. sudo 用户添加
su -
4.1 软件检查
rpm -qa | grep sudo
4.2 添加用户
visudo -f /etc/sudoers
在root ALL=(ALL) ALL后添加: 用户名 ALL=(ALL) ALL
5.开发环境配置
5.1 JAVA
./jdk-6u27-linux-x64.bin sudo vi /etc/profile --添加 export JAVA_HOME=/opt/java/jdk1.6.0_27 export JRE_HOME=$JAVA_HOME/jre export CLASS_PATH=.:$JAVA_HOME/lib:$JRE_HOME/lib export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH --reboot
5.2 IDE
NetBeans: ./netbeans-7.0.1-ml-linux.sh Eclipse: tar -xzvf eclipse-jee-indigo-linux-gtk.tar.gz mv eclipse /opt/ide
5.3 Server
Tomcat tar -xzvf apache-tomcat-6.0.33.tar.gz mv apache-tomcat-6.0.33 /opt/server/
5.4 DB
Oracle 11gR2 1. 检查依赖包是否安装 rpm -qa|grep 包名 2.安装依赖报 2.1 安装命令 yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh numactl-devel glibc-headers 2.2 出错清空 yum clean all 3.修改内核参数(参考网上配置值) 3.1添加配置参数 cp /etc/sysctl.conf /etc/sysctl.conf.bak vi /etc/sysctl.conf --添加 #oracle settings fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 3.2 修改生效 sysctl -p 4.权限配置 cp /etc/security/limits.conf /etc/security/limits.conf.bak vi /etc/security/limits.conf --添加 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 5.添加pam.d/login session required /lib/security/pam_limits.so session required pam_limits.so 6.添加oracle用户 图形界面添加 7.修改/etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi 8./etc/csh.login添加 if ( $USER == "oracle" ) then limit maxproc 16384 limit deors 65536 endif 9.创建目录,权限更改 mkdir -p /opt /db/oracle/app/oracle/product/ chown -R oracle:oinstall /opt/oracle/ chmod -R 775 /opt/oracle/ 10.设置用户参数 su - oracle vi .bash_profile --添加 ORACLE_BASE=/opt/oracle/app/oracle export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1 export ORACLE_HOME ORACLE_SID=ORCL export ORACLE_SID ORACLE_TERM=xterm export ORACLE_TERM TNS_ADMIN=$ORACLE_HOME/network/admin export TNS_ADMIN PATH=$ORACLE_HOME/bin:$PATH export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jdk/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export CLASSPATH ORACLE_UNQNAME=$ORACLE_SID export ORACLE_UNQNAME --生效 source .bash_profile exit; 11.安装 6.无线网卡安装 6.1 无线网卡类型查看 lspci -v | more 6.2 厂商下载无线网卡驱动 6.3 tar -xzvf 92ce_se_de_linux_mac80211_0005.1230.2011.tar.gz 6.4 cd rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011 6.5 ./compat/script/compat-install.sh
相关推荐
周末参见 2020-11-05
shenwenjie 2020-09-24
未完待续 2020-09-08
wadetutu 2020-08-18
patiencezzz 2020-08-03
Dablelv 2020-07-25
patiencezzz 2020-07-05
兰海泽 2020-06-15
YoungkingWang 2020-06-16
好好学习天天 2020-06-13
86530396 2020-06-12
qiaosym 2020-06-09
wadetutu 2020-06-09
onlykg 2020-06-09
wadetutu 2020-06-05
patiencezzz 2020-05-16
死鱼喜欢猫 2020-05-15
死鱼喜欢猫 2020-05-12
86530396 2020-04-30