RHEL6.5下安装OpenSIPS

2022-07-01 14:46:34 浏览数 (1)

RHEL6.5下安装OpenSIPS

[root@localhost ~]# vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain HOSTNAME=OpenSIPS.clvn.com.cn

[root@localhost ~]# service NetworkManager status NetworkManager (pid  2945) 正在运行...

[root@localhost ~]# service NetworkManager stop 停止 NetworkManager 守护进程:                            [确定] [root@localhost ~]# chkconfig --level 35 NetworkManager off [root@localhost ~]# chkconfig --list NetworkManager NetworkManager  0:关闭 1:关闭 2:启用 3:关闭 4:启用 5:关闭 6:关闭

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0C:29:6C:A2:40 TYPE=Ethernet UUID=9b5a23e3-7c38-4b6e-b7ac-088f33c8727b ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPADDR=192.168.0.28 NETMASK=255.255.255.0 IPV6INIT=no USERCTL=no

[root@localhost ~]# vim /etc/hosts 127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1        localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.0.28 OpenSIPS.clvn.com.cn                              OpenSIPS

[root@localhost ~]# reboot

[root@OpenSIPS ~]# hostname OpenSIPS.clvn.com.cn

[root@OpenSIPS ~]# ifconfig eth0 eth0      Link encap:Ethernet  HWaddr 00:0C:29:5B:82:3D            inet addr:192.168.0.28  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::20c:29ff:fe5b:823d/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:11 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:0 (0.0 b)  TX bytes:746 (746.0 b)

[root@OpenSIPS ~]# yum -y install gcc make [root@OpenSIPS ~]# yum -y install flex bison ncurses ncurses-devel openssl-devel zlib-devel [root@OpenSIPS ~]# yum -y install mysql mysql-server mysql-libs mysql-devel

[root@OpenSIPS ~]# cd /usr/local [root@OpenSIPS local]# ls bin  games    lib    libexec                    sbin  src etc  include  lib64  opensips-1.11.1_src.tar.gz  share

[root@OpenSIPS local]# ls bin  games    lib    libexec                    opensips-1.11.1-tls  share etc  include  lib64  opensips-1.11.1_src.tar.gz  sbin                src

0 人点赞