新浦京81707con > 软件下载 > 新葡萄京娱乐场网址perl安装模块到自己的home

原标题:新葡萄京娱乐场网址perl安装模块到自己的home

浏览次数:166 时间:2019-12-18

centos6.5下架设kamailio-V4.3.2服务器

安装蒙受是centos6.5版本

首先要做的干活是:

陈设好每一种遭遇..

实际互连网搜一下,这边不现实讲了.

1下载源码:

切换目录到客商主目录

cd~

在IE浏览器找出窗口上开拓官方网站下载链接查看最新的版本:

然后

wget

如图:

新葡萄京娱乐场网址 1

现阶段最新的本子:

解压至当前目录:

#tar zxvf kamailio-4.3.2_src.tar.gz

#cdkamailio-4.3.2

#make FLAVOUR=kamailio cfg

#vim modules.lst 打开modules.lst找到"exclude_modules"变量,并删除个中的db_mysql字段。

2编译

#make all

#make install

kamailio可试行文件私下认可是安装在/usr/local/sbin的路子下的,而布置文件是安装在/usr/local/etc/kamailio下。

3配置

配备蒙受变量

Kamailio的情形变量存款和储蓄在/usr/local/etc/kamailio/kamctlrc文件中。

#vi/usr/local/etc/kamailio/kamctlrc

以下是自己在这里个文件中的配置大概有一点长,笔者把需求订正的选项用革命字体标注出来,供参照他事他说加以考察。


1 # $Id$

2 #

3 # The Kamailio configuration file for the control tools.

4 #

5 # Here you can set variables used in the kamctl and kamdbctl setup

6 # scripts. Per default all variables here are commented out, the control tools

7 # will use their internal default values.

8

9 ## your SIP domain

10 SIP_DOMAIN=192.168.0.193 (那一个当然是域名,假若在局域网内做测量试验,可用Linux本机的IP地址,作者的IP地址是以此)

11

12 ## chrooted directory

13 # $CHROOT_DIR="/path/to/chrooted/directory"

14

15 ## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE

16 # by default none is loaded

17 #

18 # If you want to setup a database with kamdbctl, you must at least specify

19 # this parameter.

20 DBENGINE=MYSQL (取消"#"注释,下边相像的不在做表明)

21

22 ## database host

23 DBHOST=localhost

24

25 ## database name (for ORACLE this is TNS name)

26DBNAME=kamailio

27

28 # database path used by dbtext, db_berkeley or sqlite

29 # DB_PATH="/usr/local/etc/kamailio/dbtext"

30

31 ## database read/write user

32 DBRWUSER="kamailio"

33

34 ## password for database read/write user

35 DBRWPW="kamailiorw"

36

37 ## database read only user

38 DBROUSER="kamailioro"

39

40 ## password for database read only user

41 DBROPW="kamailioro"

42

43 ## database access host (from where is kamctl used)

44 DBACCESSHOST=192.168.0.193

45

46 ## database super user (for ORACLE this is 'scheme-creator' user)

47 DBROOTUSER="root"

48

49 # user name column

50 USERCOL="username"

51

52

53 # SQL definitions

54 # If you change this definitions here, then you must change them

55 # in db/schema/entities.xml too.

56 # FIXME

57

58 # FOREVER="2030-05-28 21:32:15"

59 # DEFAULT_Q="1.0"

60

61

62 # Program to calculate a message-digest fingerprint

63 # MD5="md5sum"

64

65 # awk tool

66 # AWK="awk"

67

68 # gdb tool

69 # GDB="gdb"

70

71 # If you use a system with a grep and egrep that is not 100% gnu grep compatible,

72 # e.g. solaris, install the gnu grep (ggrep) and specify this below.

73 #

74 # grep tool

75 # GREP="grep"

76

77 # egrep tool

78 # EGREP="egrep"

79

80 # sed tool

81 # SED="sed"

82

83 # tail tool

84 # LAST_LINE="tail -n 1"

85

86 # expr tool

87 # EXPR="expr"

88

89

90 # Describe what additional tables to install. Valid values for the variables

91 # below are yes/no/ask. With ask (default) it will interactively ask the user

92 # for an answer, while yes/no allow for automated, unassisted installs.

93 #

94

95 # If to install tables for the modules in the EXTRA_MODULES variable.

96 # INSTALL_EXTRA_TABLES=ask

97

98 # If to install presence related tables.

99 # INSTALL_PRESENCE_TABLES=ask

100

101 # If to install uid modules related tables.

102 # INSTALL_DBUID_TABLES=ask

103

104 # Define what module tables should be installed.

105 # If you use the postgres database and want to change the installed tables, then you

106 # must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the

107 # kamdbctl.base script.

108

109 # Kamailio standard modules

110 # STANDARD_MODULES="standard acc lcr domain group permissions registrar usrloc msilo

111 # alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher

112 # dialplan"

113

114 # Kamailio extra modules

115 # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"

116

117

118 ## type of aliases used: DB - database aliases; UL - usrloc aliases

119 ## - default: none

120 # ALIASES_TYPE="DB"

121

122 ## control engine: FIFO or UNIXSOCK

123 ## - default FIFO

124 # CTLENGINE="FIFO"

125

126 ## path to FIFO file

127 # FIFOPATH="/var/run/kamailio/kamailio_fifo"

128

129 ## check ACL names; default on (1); off (0)

130 # VERIFY_ACL=1

131

132 ## ACL names - if VERIFY_ACL is set, only the ACL names from below list

133 ## are accepted

134 # ACL_GROUPS="local ld int voicemail free-pstn"

135

136 ## verbose - debug purposes - default '0'

137 VERBOSE=1

138

139 ## do (1) or don't (0) store plaintext passwords

140 ## in the subscriber table - default '1'

141 # STORE_PLAINTEXT_PW=0

142

143 ## Kamailio START Options

144 ## PID file path - default is: /var/run/kamailio.pid

145 PID_FILE=/var/run/kamailio/kamailio.pid

146

147 ## Extra start options - default is: not set

148 # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"

149 # STARTOPTIONS=


然后

#vi/usr/local/etc/kamailio/kamailio.cfg

在"####### Defined Values #########"那行从前增进上边这几行:

...

#!define WITH_MYSQL
#!define WITH_AUTH

#!define WITH_USRLOCDB

...

保留退出!

4创办数据库&增添账号

实践命令创立援救的数据库:

# /usr/local/sbin/kamdbctl create

启动kamailio服务

# /usr/local/sbin/kamctl start

张开kamailio监视格局(可略过..)

# /usr/local/sbin/kamctl moni

增进客户账号和密码(注册卡塔尔(英语:State of Qatar)

# kamctl add 10001 10001

# kamctl add 10002 10002

加多了三个账户,前一个数字是账号,后二个是密码。

劳务器端配置核心完成了..

接下去网络找些基于安卓的sip顾客端软件,安装配备并测量试验。

本身动用的是CSipSimple那款app。

手提式有线电话机顾客端测验应用程式链接(由于附属类小构件大于2M无法上传,所以贴出作者的网盘链接)

访谈密码 e096

或许自身网络找相仿的要么相符的。

想必会碰着的标题:


测量试验的时候要是注册不成功,请检查手机和PC是不是坐落于同贰个局域网内。

linux kamailio服务器中有未有增加将在注册的账户

命令:

# kamctl add 账户 密码

中标加多账户后

请检查linux防火墙有未有关闭,手提式有线电话机安全设置有没反常...


附件和截图:


新葡萄京娱乐场网址 2

安装碰着是centos6.5版本

第风度翩翩要做的干活是:

布署好每一类情况..

现实网络搜一下,那边不现实讲了.

1下载源码:

切换目录到客户主目录

cd~

在IE浏览器寻觅窗口上开发官方网址下载链接查看最新的版本:

然后

wget

如图:

新葡萄京娱乐场网址 3

脚下风行的本子:

解压至当前目录:

#tar zxvf kamailio-4.3.2_src.tar.gz

#cdkamailio-4.3.2

#make FLAVOUR=kamailio cfg

#vim modules.lst 打开modules.lst找到"exclude_modules"变量,并剔除在那之中的db_mysql字段。

2编译

#make all

#make install

kamailio可推行文件暗许是安装在/usr/local/sbin的路径下的,而陈设文件是安装在/usr/local/etc/kamailio下。

3配置

配备情状变量

Kamailio的情况变量存款和储蓄在/usr/local/etc/kamailio/kamctlrc文件中。

#vi/usr/local/etc/kamailio/kamctlrc

以下是自家在那几个文件中的配置或许有一点点长,作者把须要改革的选项用深黑字体标注出来,供参照他事他说加以侦查。


1 # $Id$

2 #

3 # The Kamailio configuration file for the control tools.

4 #

5 # Here you can set variables used in the kamctl and kamdbctl setup

6 # scripts. Per default all variables here are commented out, the control tools

7 # will use their internal default values.

8

9 ## your SIP domain

10 SIP_DOMAIN=192.168.0.193 (这么些本来是域名,假若在局域网内做测量试验,可用Linux本机的IP地址,作者的IP地址是那个)

11

12 ## chrooted directory

13 # $CHROOT_DIR="/path/to/chrooted/directory"

14

15 ## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE

16 # by default none is loaded

17 #

18 # If you want to setup a database with kamdbctl, you must at least specify

19 # this parameter.

20 DBENGINE=MYSQL (取消"#"注释,下边肖似的不在做解释)

21

22 ## database host

23 DBHOST=localhost

24

25 ## database name (for ORACLE this is TNS name)

26DBNAME=kamailio

27

28 # database path used by dbtext, db_berkeley or sqlite

29 # DB_PATH="/usr/local/etc/kamailio/dbtext"

30

31 ## database read/write user

32 DBRWUSER="kamailio"

33

34 ## password for database read/write user

35 DBRWPW="kamailiorw"

36

37 ## database read only user

38 DBROUSER="kamailioro"

39

40 ## password for database read only user

41 DBROPW="kamailioro"

42

43 ## database access host (from where is kamctl used)

44 DBACCESSHOST=192.168.0.193

45

46 ## database super user (for ORACLE this is 'scheme-creator' user)

47 DBROOTUSER="root"

48

49 # user name column

50 USERCOL="username"

51

52

53 # SQL definitions

54 # If you change this definitions here, then you must change them

55 # in db/schema/entities.xml too.

56 # FIXME

57

58 # FOREVER="2030-05-28 21:32:15"

59 # DEFAULT_Q="1.0"

60

61

62 # Program to calculate a message-digest fingerprint

63 # MD5="md5sum"

64

65 # awk tool

66 # AWK="awk"

67

68 # gdb tool

69 # GDB="gdb"

70

71 # If you use a system with a grep and egrep that is not 100% gnu grep compatible,

72 # e.g. solaris, install the gnu grep (ggrep) and specify this below.

73 #

74 # grep tool

75 # GREP="grep"

76

77 # egrep tool

78 # EGREP="egrep"

79

80 # sed tool

81 # SED="sed"

82

83 # tail tool

84 # LAST_LINE="tail -n 1"

85

86 # expr tool

87 # EXPR="expr"

88

89

90 # Describe what additional tables to install. Valid values for the variables

91 # below are yes/no/ask. With ask (default) it will interactively ask the user

92 # for an answer, while yes/no allow for automated, unassisted installs.

93 #

94

95 # If to install tables for the modules in the EXTRA_MODULES variable.

96 # INSTALL_EXTRA_TABLES=ask

97

98 # If to install presence related tables.

99 # INSTALL_PRESENCE_TABLES=ask

100

101 # If to install uid modules related tables.

102 # INSTALL_DBUID_TABLES=ask

103

104 # Define what module tables should be installed.

105 # If you use the postgres database and want to change the installed tables, then you

106 # must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the

107 # kamdbctl.base script.

108

109 # Kamailio standard modules

110 # STANDARD_MODULES="standard acc lcr domain group permissions registrar usrloc msilo

111 # alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher

112 # dialplan"

113

114 # Kamailio extra modules

115 # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"

116

117

118 ## type of aliases used: DB - database aliases; UL - usrloc aliases

119 ## - default: none

120 # ALIASES_TYPE="DB"

121

122 ## control engine: FIFO or UNIXSOCK

123 ## - default FIFO

124 # CTLENGINE="FIFO"

125

126 ## path to FIFO file

127 # FIFOPATH="/var/run/kamailio/kamailio_fifo"

128

129 ## check ACL names; default on (1); off (0)

130 # VERIFY_ACL=1

131

132 ## ACL names - if VERIFY_ACL is set, only the ACL names from below list

133 ## are accepted

134 # ACL_GROUPS="local ld int voicemail free-pstn"

135

136 ## verbose - debug purposes - default '0'

137 VERBOSE=1

138

139 ## do (1) or don't (0) store plaintext passwords

140 ## in the subscriber table - default '1'

141 # STORE_PLAINTEXT_PW=0

142

143 ## Kamailio START Options

144 ## PID file path - default is: /var/run/kamailio.pid

145 PID_FILE=/var/run/kamailio/kamailio.pid

146

147 ## Extra start options - default is: not set

148 # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"

149 # STARTOPTIONS=


然后

#vi/usr/local/etc/kamailio/kamailio.cfg

在"####### Defined Values #########"那行早前增加下面这几行:

...

#!define WITH_MYSQL
#!define WITH_AUTH

#!define WITH_USRLOCDB

...

保存退出!

4开立数据库&增添账号

实践命令成立扶持的数据库:

# /usr/local/sbin/kamdbctl create

启动kamailio服务

# /usr/local/sbin/kamctl start

拉开kamailio监视方式(可略过..)

# /usr/local/sbin/kamctl moni

充足客户账号和密码(注册卡塔尔(قطر‎

# kamctl add 10001 10001

# kamctl add 10002 10002

加多了四个账户,前三个数字是账号,后多个是密码。

劳务器端配置大旨形成了..

接下去网络找些基于安卓的sip客商端软件,安装配备并测验。

自小编使用的是CSipSimple那款app。

手提式有线电话机顾客端测量检验APP链接(由于附属类小零部件大于2M不可能上传,所以贴出笔者的网盘链接)

访谈密码 e096

依旧自个儿网络找相仿的要么雷同的。

也许会碰着的标题:


测验的时候若是注册不成事,请检查手提式有线电话机和PC是不是坐落于同四个局域网内。

linux kamailio服务器中有未有拉长快要注册的账户

命令:

# kamctl add 账户 密码

马到成功增多账户后

请检查linux防火墙有未有关闭,手提式无线电话机安全设置有没有标题...


附属类小零部件和截图:


新葡萄京娱乐场网址 4

安装遇到是centos6.5版本 首先要做的办事是: 配置好各种景况.. 具体网络搜一下,那边不具体讲了. 1下载源码...

use local::lib to install perl modules in your home directory ?

  •  
    By default local::lib installs itself and the CPAN modules into ~/perl5.
    Windows users must also see "Differences when using this module under Win32".
  1. Download and unpack the local::lib tarball from CPAN (search for "Download" on the CPAN page about local::lib). Do this as an ordinary user, not as root or administrator. Unpack the file in your home directory or in any other convenient location.

  2. Run this:

      perl Makefile.PL --bootstrap
    

    If the system asks you whether it should automatically configure as much as possible, you would typically answer yes.

    In order to install local::lib into a directory other than the default, you need to specify the name of the directory when you call bootstrap, as follows:

      perl Makefile.PL --bootstrap=~/foo
    
  3. Run this: (local::lib assumes you have make installed on your system)

      make test && make install
    
  4. Now we need to setup the appropriate environment variables, so that Perl starts using our newly generated lib/ directory. If you are using bash or any other Bourne shells, you can add this to your shell startup script this way:

      echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >>~/.bashrc
    

    If you are using C shell, you can do this as follows:

      /bin/csh
      echo $SHELL
      /bin/csh
      echo 'eval `perl -I$HOME/perl5/lib/perl5 -Mlocal::lib`' >> ~/.cshrc
    

    If you passed to bootstrap a directory other than default, you also need to give that as import parameter to the call of the local::lib module like this way:

      echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/foo/lib/perl5 -Mlocal::lib=$HOME/foo)"' >>~/.bashrc
    

    After writing your shell configuration file, be sure to re-read it to get the changed settings into your current shell's environment. Bourne shells use . ~/.bashrc for this, whereas C shells use source ~/.cshrc.

 

本文由新浦京81707con发布于软件下载,转载请注明出处:新葡萄京娱乐场网址perl安装模块到自己的home

关键词: 新浦京81707con perl

上一篇:VueAwesomeSwiper在VUE中的使用以及遇到的一些问题,

下一篇:没有了