Centos

Centos 7升级OpenSSH

下载包 wget --no-check-certificate https://www.openssl.org/source/old/1.1.1/openssl-1.1.1w.tar.gz wget https://mirrors.aliyun.com/pub/OpenBSD/OpenSSH/portable/openssh-9.9p1.tar.gz 安装编译环境 sudo yum groupinstall -y "Development Tools" sudo yum install -y rpmdevtools imake libXt-devel gtk2-devel sudo yum install -y zlib-devel pam-devel krb5-devel 编译安装 tar xf openssl-1.1.1w.tar.gz cd openssl-1.1.1w ./config shared zlib -fPIC --prefix=/usr/local/openssl make -j 4 sudo make install cd /opt/software/openssh-9.9p1 ./configure --prefix=/usr/local/openssh --with-ssl-dir=/usr/local/openssl --with-zlib make -j 4 sudo make install sudo cp contrib/redhat/sshd.init /etc/init.d/sshd vi /usr/local/openssh/etc/sshd_config PermitRootLogin yes PubkeyAuthentication yes 安装前和安装后操作 sudo mv /usr/bin/openssl /usr/bin/openssl.

继续阅读

Centos 7.6安装Oracle 11g

安装依赖包 创建用户 配置系统资源限制 配置环境变量 配置应答文件 静默安装 配置系统自动启动 配置内存参数 安装依赖包 [centos@ls-nhyc04 ~]$ sudo yum install -y automake autotools-dev binutils bzip2 elfutils expat \ gawk gcc gcc-multilib g++-multilib lib32ncurses5 lib32z1 \ ksh less lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 \ libc6-i386 libelf-dev libltdl-dev libodbcinstq4-1 libodbcinstq4-1:i386 \ libpth-dev libpthread-stubs0-dev libstdc++5 make openssh-server rlwrap \ rpm sysstat unixodbc unixodbc-dev unzip x11-utils zlibc unzip cifs-utils \ libXext.x86_64 glibc.i686 创建用户 [centos@ls-nhyc04 ~]$ sudo groupadd -g 502 oinstall [centos@ls-nhyc04 ~]$ sudo groupadd -g 503 dba [centos@ls-nhyc04 ~]$ sudo groupadd -g 504 oper [centos@ls-nhyc04 ~]$ sudo groupadd -g 505 asmadmin [centos@ls-nhyc04 ~]$ sudo useradd -u 502 -g oinstall -G oinstall,dba,asmadmin,oper -s /bin/bash -m oracle [centos@ls-nhyc04 ~]$ sudo passwd oracle 配置系统资源限制

继续阅读