Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何解决;LUA脚本解析/执行错误“;安装自由开关期间? 2016-10-24 02:37:33.733197[INFO]mod_dialplan_xml.c:637处理上下文默认值1985922714->4595609013 2016-10-24 02:37:33.753200[ERR]开关_odbc.c:368状态:01000代码0错误:[unixODBC][Driver Manager]无法打开lib'/usr/lib64/libmyodbc5.so':找不到文件 2016-10-24 02:37:33.753200[CRIT]交换机\u core\u sqldb.c:508无法连接到ODBC ASTPP! 2016-10-24 02:37:33.753200[错误]自由开关。cpp:367连接失败。胸径未连接。 2016-10-24 02:37:33.753200[错误]自由开关。cpp:460胸径未连接。 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:203/usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:32:断言失败! 堆栈回溯: [C] :在函数“assert”中 /usr/local/freeswitch/scripts/astp/lib/astpp.functions.lua:32:在函数“load_conf”中 /usr/local/freeswitch/scripts/astpp/astpp.lua:49:在主块中 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:270 lua脚本解析/执行错误! 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713警告 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713打开/usr/local/freeswitch/conf/vars.xml并更改默认密码。 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713曾经在控制台更改过类型“reloadxml”。_Linux_Debian_Freeswitch - Fatal编程技术网

Linux 如何解决;LUA脚本解析/执行错误“;安装自由开关期间? 2016-10-24 02:37:33.733197[INFO]mod_dialplan_xml.c:637处理上下文默认值1985922714->4595609013 2016-10-24 02:37:33.753200[ERR]开关_odbc.c:368状态:01000代码0错误:[unixODBC][Driver Manager]无法打开lib'/usr/lib64/libmyodbc5.so':找不到文件 2016-10-24 02:37:33.753200[CRIT]交换机\u core\u sqldb.c:508无法连接到ODBC ASTPP! 2016-10-24 02:37:33.753200[错误]自由开关。cpp:367连接失败。胸径未连接。 2016-10-24 02:37:33.753200[错误]自由开关。cpp:460胸径未连接。 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:203/usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:32:断言失败! 堆栈回溯: [C] :在函数“assert”中 /usr/local/freeswitch/scripts/astp/lib/astpp.functions.lua:32:在函数“load_conf”中 /usr/local/freeswitch/scripts/astpp/astpp.lua:49:在主块中 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:270 lua脚本解析/执行错误! 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713警告 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713打开/usr/local/freeswitch/conf/vars.xml并更改默认密码。 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713曾经在控制台更改过类型“reloadxml”。

Linux 如何解决;LUA脚本解析/执行错误“;安装自由开关期间? 2016-10-24 02:37:33.733197[INFO]mod_dialplan_xml.c:637处理上下文默认值1985922714->4595609013 2016-10-24 02:37:33.753200[ERR]开关_odbc.c:368状态:01000代码0错误:[unixODBC][Driver Manager]无法打开lib'/usr/lib64/libmyodbc5.so':找不到文件 2016-10-24 02:37:33.753200[CRIT]交换机\u core\u sqldb.c:508无法连接到ODBC ASTPP! 2016-10-24 02:37:33.753200[错误]自由开关。cpp:367连接失败。胸径未连接。 2016-10-24 02:37:33.753200[错误]自由开关。cpp:460胸径未连接。 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:203/usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:32:断言失败! 堆栈回溯: [C] :在函数“assert”中 /usr/local/freeswitch/scripts/astp/lib/astpp.functions.lua:32:在函数“load_conf”中 /usr/local/freeswitch/scripts/astpp/astpp.lua:49:在主块中 2016-10-24 02:37:33.753200[ERR]mod_lua.cpp:270 lua脚本解析/执行错误! 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713警告 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713打开/usr/local/freeswitch/conf/vars.xml并更改默认密码。 2016-10-24 02:37:33.753200[CRIT]mod_dptools.c:1713曾经在控制台更改过类型“reloadxml”。,linux,debian,freeswitch,Linux,Debian,Freeswitch,这是我的解决方案: 运行: 然后运行: [root@astpp-v3 ~]# cat /etc/odbc.ini [ASTPP] Driver = /usr/lib64/libmyodbc5.so SERVER = localhost PORT = 3306 DATABASE = astpp USERNAME = root PASSWORD = lozycv OPTION = 67108864 **Socket = /var/run/mysql/mysql.sock** 请注意mysql.so

这是我的解决方案:

运行:

然后运行:

[root@astpp-v3 ~]# cat /etc/odbc.ini
[ASTPP]
Driver = /usr/lib64/libmyodbc5.so
SERVER = localhost
PORT = 3306
DATABASE = astpp
USERNAME = root
PASSWORD = lozycv
OPTION = 67108864
**Socket = /var/run/mysql/mysql.sock**

请注意mysql.sock的正确路径,并用它更新odbc.ini文件。

请运行下面的命令以验证mysql与freeswitch的连接

[root@astpp-v3 ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
**socket=/var/lib/mysql/mysql.sock**
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d

你没有;请不要指定有关安装的任何详细信息。此外,错误
无法打开lib'/usr/lib64/libmyodbc5.so':找不到文件
非常简单,如果要安装软件,您需要能够管理您的系统。问题是您的Lua脚本无法连接到数据库。请检查您正在调用的Lua脚本,也可以在此处发布脚本代码。您运行了什么导致此错误?
[root@astpp-v3 ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
**socket=/var/lib/mysql/mysql.sock**
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
[isql -v ASTPP]