CentOS 7 OCI 8 설치를 자세히 설명하는 기사
아래 centos 튜토리얼 칼럼에서는 CentOS 7 OCI 8 설치 방법을 소개하겠습니다. 도움이 필요한 친구들에게 도움이 되었으면 좋겠습니다!
1. Oracle 파일 다운로드: 연결된 Oracle 데이터베이스와 일치해야 합니다. 예: Oracle 11.0.2.4가 연결되어 있어야 합니다. 다운로드한 파일은 11 버전이어야 합니다. 다음은 Oracle 11.0.2.4를 사용한 예입니다.
다운로드 주소: https://www.oracle.com/cn/database/technologies/instant-client/linux-x86-64-downloads.html
다운로드된 파일:
1.oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm2.oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm3.oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
2. oracle-instantclien 설치
2.1 /usr/local/src/ 디렉토리에 들어가서 다운로드한 모든 rpm을 이 디렉토리에 복사하세요.
[root@localhost src]# pwd/usr/local/src[root@localhost src]# ls oci8 oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
2.2 패키지 설치
rpm -Uvh oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm rpm -Uvh oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm rpm -Uvh oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
2.3 설치가 완료되었는지 확인합니다
[root@localhost oracle]# ls11.1[root@localhost oracle]# [root@localhost oracle]# [root@localhost oracle]# pwd/usr/lib/oracle[root@localhost oracle]#
3. php
3.1의 oci 확장자를 추가합니다. 컴파일된 패키지
[root@localhost oci8]# pwd/var/www/html/php-7.4.0/ext/oci8[root@localhost oci8]#
3.2./usr/local/php740/bin을 입력합니다. /phpize
[root@localhost oci8]# /usr/local/php740/bin/phpize Configuring for:PHP Api Version: 20190902Zend Module Api No: 20190902Zend Extension Api No: 320190902[root@localhost oci8]#
3.3 ./configure
[root@localhost oci8]# ./configure --with-php-config=/usr/local/php740/bin/php-config --with-oci8=shared,instantclient,/usr/lib/oracle/11.1/client64/lib checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sed checking for pkg-config... /bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out
3.4 make
[root@localhost oci8]# make && make installPATH="$PATH:/sbin" ldconfig -n /var/www/html/php-7.4.0/ext/oci8/modules----------------------------------------------------------------------Libraries have been installed in: /var/www/html/php-7.4.0/ext/oci8/modules If you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries formore information, such as the ld(1) and ld.so(8) manual pages.----------------------------------------------------------------------Build complete.Don't forget to run 'make test'.Installing shared extensions: /usr/local/php740/lib/php/extensions/no-debug-non-zts-20190902/[root@localhost oci8]# [root@localhost oci8]# cd /usr/local/php740/lib/php/extensions/no-debug-non-zts-20190902/[root@localhost no-debug-non-zts-20190902]# ls gd.so libzip.so mongodb.so oci8.so opcache.a opcache.so redis.so swoole.so xdebug.so zip.so
4.1 소개
vim /usr/local/php740/lib/php.ini 下面每种都可 extension=/usr/local/php740/lib/php/extensions/no-debug-non-zts-20190902/oci8.so extenstion=oci8.so
위 내용은 CentOS 7 OCI 8 설치를 자세히 설명하는 기사의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











이 기사는 Logrotate를 사용하여 CentOS에서 로그 회전을 구성하는 방법, 설치, 구성 및 디스크 공간 관리 및 보안과 같은 이점을 자세히 설명하는 방법을 설명합니다.

기사는 시스템 요구 사항 및 보안 조치를 포함하여 CentOS에서 MySQL/MariaDB의 설치, 구성 및 문제 해결에 대해 논의합니다 (159 자)

이 기사는 효율적인 스토리지 관리를 위해 Centos의 LVM (Logical Volume Management) 사용, 설정, 확장 및 백업/복원 프로세스를위한 단계를 자세히 설명하고 전통적인 파티셔닝에 대한 LVM의 장점을 강조합니다.

이 기사는 Centos에서 SystemD를 사용하여 시스템 서비스를 관리하는 방법, 시작, 중지, 부팅 가능 및 문제 해결 서비스를 포함합니다.

이 기사는 CentOS에 대한 고음성 PHP-FPM 응용 프로그램을 구축합니다. 서버 구성 (하드웨어, PHP-FPM 설정,로드 밸런싱), 캐싱, 데이터베이스 최적화, 코드 효율성 및 리소스 모니터링과 같은 주요 문제를 해결합니다.

이 기사는 Top, HTOP 및 VMSTAT를 사용한 CentOS 시스템 성능 모니터링에 대해 설명하고 효과적인 시스템 분석을위한 기능, 차이 및 사용자 정의에 대해 자세히 설명합니다.

이 기사는 Centos 백업 및 재해 복구 (DR) 모범 사례에 대해 자세히 설명합니다. 정기적 인 백업 (전체, 증분, 차동), 오프 사이트 스토리지 및 엄격한 테스트를 포함하는다면적인 접근법을 강조합니다. 고 가용성 클러스터링

이 기사는 설치, 활성화, 기본 명령 및 문제 해결 단계를 포함하여 CentOS에서 방화장 설정 및 관리에 대한 포괄적 인 안내서를 제공합니다.
