


Ein Artikel, der die Installation von CentOS 7 OCI 8 ausführlich erklärt
In der Spalte „Centos-Tutorial“ unten wird Ihnen die Installationsmethode von CentOS 7 OCI 8 vorgestellt. Ich hoffe, dass es Freunden in Not hilfreich sein wird!
1. Laden Sie die Oracle-Datei herunter: Sie muss mit der verbundenen Oracle-Datenbank übereinstimmen, z. B.: Oracle von 11.0.2.4 ist verbunden. Die heruntergeladenen Dateien müssen Version 11 sein.Das Folgende ist ein Beispiel mit Oracle 11.0.2.4:
Download-Adresse: https://www.oracle.com/cn/database/technologies/instant-client/linux-x86-64-downloads.html
Heruntergeladene Datei: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.rpmNach dem Login kopieren
2. Installieren Sie oracle-instantclien
2.1 Geben Sie das Verzeichnis /usr/local/src/ ein und kopieren Sie alle heruntergeladenen RPMs in dieses Verzeichnis[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
Nach dem Login kopieren
[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 Installieren Sie das Paket 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
Nach dem Login kopieren
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 Bestätigen Sie, dass die Installation abgeschlossen ist. [root@localhost oracle]# ls11.1[root@localhost oracle]#
[root@localhost oracle]#
[root@localhost oracle]# pwd/usr/lib/oracle[root@localhost oracle]#
Nach dem Login kopieren 0/bin /phpize [root@localhost oci8]# pwd/var/www/html/php-7.4.0/ext/oci8[root@localhost oci8]#
Nach dem Login kopieren
[root@localhost oracle]# ls11.1[root@localhost oracle]# [root@localhost oracle]# [root@localhost oracle]# pwd/usr/lib/oracle[root@localhost oracle]#
[root@localhost oci8]# pwd/var/www/html/php-7.4.0/ext/oci8[root@localhost oci8]#
3.3 ./configure[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]#
Nach dem Login kopieren
[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.4 make[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
Nach dem Login kopieren
[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
4.1 [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
Nach dem Login kopieren vorstellen
[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
Das obige ist der detaillierte Inhalt vonEin Artikel, der die Installation von CentOS 7 OCI 8 ausführlich erklärt. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

AI Hentai Generator
Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

Heiße Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

Heiße Themen



In dem Artikel wird erläutert, wie die Protokolldrehung in CentOS mit Logrotate konfiguriert wird, die Installation, Konfiguration und Vorteile wie das Speicherplatzverwaltungen und die Sicherheit von Festplatten detailliert haben.

In Artikel werden die Installation, Konfiguration und Fehlerbehebung von MySQL/MariADB auf CentOS, einschließlich Systemanforderungen und Sicherheitsmaßnahmen, (159 Zeichen) erläutert. (159 Zeichen).

In dem Artikel wird die Verwendung von Logical Volumen Management (LVM) in CentOS für ein effizientes Speichermanagement, die Detaillierung von Schritten für die Einrichtung, Erweiterung und Sicherung/Wiederherstellung erörtert und die Vorteile von LVM gegenüber der traditionellen Partitionierung hervorgehoben.

In dem Artikel wird erläutert, wie Systemdienste mithilfe von Systemd auf CentOS verwaltet, Start-, Stoppen-, Aktivieren und Fehlerbehebungsdienste abdecken.

In dem Artikel wird die Überwachung der CentOS -Systemleistung mithilfe von Top, HTOP und VMSTAT erläutert und ihre Funktionen, Unterschiede und Anpassungen für eine effektive Systemanalyse beschrieben.

In dem Artikel werden Yum und DNF für das Paketmanagement in CentOS unter Verwendung ihrer Befehle, Unterschiede und Fehlerbehebungen beschrieben. Zu den wichtigsten Unterschieden gehören Geschwindigkeit, Abhängigkeitsauflösung und Modularität, wobei DNF in CentOS 8 Standard ist.

In dem Artikel wird die Schritte für eine minimale CentOS -Installation, Deckung von Download, Startmedienerstellung und System -Setup beschrieben. Es werden Vorteile wie reduzierter Ressourcenverbrauch und verbesserter Sicherheit erörtert und die Softwareverwaltung nach der Installation mithilfe von YUM erläutert

Der Artikel enthält einen umfassenden Leitfaden zum Einrichten und Verwalten von Firewalld on CentOS, einschließlich Installation, Aktivierung, grundlegenden Befehlen und Schritten zur Fehlerbehebung.
