在/etc/profile.d/简历oracle.sh

内容如下在NLS_LANG设置编码

 

1 ORACLE_HOME=/usr/lib/oracle/12.1/client64
2 C_INCLUDE_PATH=/usr/include/oracle/12.1/client64
3 LD_LIBRARY_PATH=$ORACLE_HOME/lib
4 #remember this is the client NLS_LANG not the server one
5 NLS_LANG=FRENCH_FRANCE.UTF8 
6 export ORACLE_HOME LD_LIBRARY_PATH NLS_LANG

 

然后修改 /etc/init.d/php-fpm

在头部增加

. /etc/profile.d/oracle.sh

. /etc/init.d/functions
. /etc/profile.d/oracle.sh


# Check that networking is up.
. /etc/sysconfig/network


# Additional environment file
if [ -f /etc/sysconfig/php-fpm ]; then
. /etc/sysconfig/php-fpm
fi


if [ "$NETWORKING" = "no" ]
then
exit 0
fi


RETVAL=0
prog="php-fpm"
pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/php-fpm}

 

然后重新启动php即可

相关文章:

  • 2021-09-13
  • 2022-01-13
  • 2021-10-23
  • 2022-12-23
  • 2021-11-30
  • 2021-10-06
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-15
  • 2021-09-20
  • 2022-12-23
  • 2021-10-07
相关资源
相似解决方案