自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

OpenSIPs安裝上傳mysql模與創(chuàng)建數(shù)據(jù)庫

運維 系統(tǒng)運維
上傳OpenSIPs安裝穩(wěn)定版,opensips-1.4.4-tls_src.tar[/usr/src] # tar zxvf opensips-1.4.4-tls_src.tar.gz 進(jìn)入opensips-1.4.4-tls_src目錄中,刪除Makefile中的exclude_modules 的db-mysql ,為了使OpenSIPs安裝支持mysql。

在向大家詳細(xì)介紹OpenSIPs安裝之前,首先讓大家了解下OpenSIPs安裝,然后全面介紹OpenSIPs安裝,希望對大家有用。OpenSIPs安裝 mysql模塊的安裝。

1、安裝CentOs 4.5,選custom安裝,開發(fā)包及Mysql要裝全:

  1. # rpm –qa | grep mysql     查看“mysql”、“mysql-devel”、 “mysql-server”三個是否完全安裝否?  
  2. # /etc/init.d/mysqld start    起動Mysql 

2、上傳OpenSIPs安裝穩(wěn)定版,opensips-1.4.4-tls_src.tar
[/usr/src] # tar zxvf opensips-1.4.4-tls_src.tar.gz
進(jìn)入opensips-1.4.4-tls_src目錄中,刪除Makefile中的exclude_modules 的db-mysql ,為了使OpenSIPs安裝支持mysql。

3、編譯安裝:

  1. # make all  
  2. # make install 

默認(rèn)安裝路徑為/usr/local/sbin /usr/local/share……

4、OpenSIPs安裝創(chuàng)建數(shù)據(jù)庫

編緝:/usr/local/etc/opensips/opensipsctlrc

  1. ## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded  
  2. # If you want to setup a database with opensipsdbctl, you must at least specify  
  3. # this parameter.  
  4. DBENGINE=MYSQL 
  5. ## database host  
  6. DBHOST=localhost 
  7. ## database name (for ORACLE this is TNS name)  
  8. DBNAME=opensips 
  9. # database path used by dbtext or db_berkeley  
  10. DB_PATH="/usr/local/etc/opensips/dbtext" 
  11. ## database read/write user  
  12. DBRWUSER=opensips 
  13. ## password for database read/write user  
  14. DBRWPW="opensipsrw" 
  15. ## database read only user  
  16. DBROUSER=opensipsro 
  17. ## password for database read only user  
  18. DBROPW=opensipsro 
  19. ## database super user (for ORACLE this is 'scheme-creator' user)  
  20. DBROOTUSER="root" 
  21. # user name column  
  22. USERCOL="username" 

OpenSIPs安裝修改完后,在/usr/local/sbin/目錄下執(zhí)行:./opensipsdbctl create (生成opensips數(shù)據(jù)庫)

  1. [root@localhost sbin]# ./opensipsdbctl create  
  2. MySQL password for root:   
  3. INFO: test server charset  
  4. INFO: creating database opensips ...  
  5. INFO: Core OpenSIPS tables succesfully created.  
  6. Install presence related tables? (y/n): y  
  7. INFO: creating presence tables into opensips ...  
  8. INFO: Presence tables succesfully created.  
  9. Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist? (y/n): y  
  10. INFO: creating extra tables into opensips ...  
  11. INFO: Extra tables succesfully created. 

5、運行OpenSIPs安裝:

  1. /usr/local/sbin/opensipsctl start      啟動opensips  
  2. 查看進(jìn)程: ps –ef |grep opensips  
  3. /usr/local/sbin/opensipsctl stop       停止opensips  

6、OpenSIPs安裝配置文件:

  1. vi /usr/local/etc/opensips/opensips.cfg  
  2. loadmodule "db_mysql.so"     去掉#打開mysql模塊  
  3. loadmodule "auth.so"           去掉#  
  4. loadmodule "auth_db.so"      去掉#  
  5. loadmodule "alias_db.so"  
  6. modparam("usrloc", "db_mode",   0)       0改為2  
  7. modparam("auth_db", "calculate_ha1", yes)     去掉#  
  8. modparam("auth_db", "password_column", "password")    去掉# 

【編輯推薦】

  1. Linux MYSQL命令修改各種連接的這那方法
  2. Linux MySQL程序服務(wù)內(nèi)建安全機制
  3. Linux Oracle訪問MySQL的Client端軟件
  4. Linux mount命令于的基本用法與umount的命令
  5. Linux mount命令系統(tǒng)掛載與鏡像處理
責(zé)任編輯:佚名 來源: CSDN
相關(guān)推薦

2010-04-28 16:37:31

Oracle數(shù)據(jù)字典

2010-05-26 18:16:31

MySQL數(shù)據(jù)庫安裝

2010-05-21 10:01:11

MySQL數(shù)據(jù)庫

2010-05-20 16:35:12

2011-03-30 10:15:14

Mysql數(shù)據(jù)庫服務(wù)器

2010-05-28 09:15:50

配置MySQL

2011-04-02 13:09:10

MySQLWebmin創(chuàng)建數(shù)據(jù)庫

2011-03-21 17:00:23

MySQL數(shù)據(jù)庫

2011-07-27 14:41:43

JMeterMySQL

2010-06-11 16:16:59

2011-08-23 15:16:54

OracleMySQL

2010-06-13 10:18:08

MySQL 數(shù)據(jù)庫函數(shù)

2020-04-03 10:30:50

MySQL數(shù)據(jù)庫技術(shù)

2010-01-14 17:23:29

CentOS Orac

2010-06-12 17:06:44

2010-07-06 09:49:56

SQL Server

2010-05-26 10:15:11

MySQL數(shù)據(jù)庫

2018-05-14 16:14:56

數(shù)據(jù)庫MySQL分表與分區(qū)

2011-08-30 13:40:28

MySQL線程

2011-04-19 10:32:28

圖片數(shù)據(jù)庫
點贊
收藏

51CTO技術(shù)棧公眾號