در مورد نصب و راه راه اندازي نرم افزار IBsng راهنمايي مي خواستتم
ممنون
Printable View
در مورد نصب و راه راه اندازي نرم افزار IBsng راهنمايي مي خواستتم
ممنون
سایت پارس پویش.
سلام نصبش زیاد سخت نیست ..من دستورات نصب رو اینجا واست میزارم..روی اکثر لینوکس ها میتونی نصب کنی ولی debian یا centos سازگار ترن من روی centos نصب میکنم که جزیاتش به این صورت هست:
قبل از شروع با استفاده از دستور setup باید selinux و security level رو غیر فعال کنید
1-باید با yum یه سری پکیج ها مثل وب سرور و دیتابیس و وو رو نصب کنی :
[CODE]yum install httpd postgresql postgresql-server postgresql-python php perl -y[/CODE]
2-یسته نصب IBS رو دانلود کن توی سرورت مثلا من نسخه مجانی 1.24 رو مثال میزنم :
[CODE]wget http://space.dl.sourceforge.net/project/ibs/IBSng/IBSng-A1.24/IBSng-A1.24.tar.bz2[/CODE]
3- بهتره در مسیر /usr/local از حلت فشرده خارجش کنی :
[CODE]tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local[/CODE]
4-سرویس دیتابیس postgre رو استارت کن :
[CODE]service postgresql start[/CODE]
5-فایل pg_hba.conf که فایل کانفیگ postgre هست رو ادیت کن و در اولین خط مقادیر زیر رو وارد کن:
[CODE]nano /var/lib/pgsql/data/pg_hba.conf[/CODE]
مقادیر شامل سرور دیتابیس که ما local در نظر میگیریم توی مثال و نام دیتابیس و نام کاربر دیتابیس که به ترتیب ما IBSng وibs رو در نظر میگیریم ونهایتا سطح دسترسی که باید trust باشه پس به صورت زیر مقادیر گفته شده رو در اولین خط فایل وارد میکنیم :
[CODE] local IBSng ibs trust[/CODE]
6-حالا سرویس دیتابیس رو ریستارت کن :
[CODE]service postgresql restart
[/CODE]
7-به postgre لاگین کن و دیتابیس و یوزر رو بساز و تنظیمات زیر رو انجام بده :
لاگین به دیتابیس :
[CODE]su - postgres
[/CODE]
ساخت یوزر و دیتابیس و اختصاص language :
[CODE]createdb IBSng
createuser ibs
createlang plpgsql IBSng
exit
[/CODE]
8-بعد از اتمام مراحل حالا فایل نصب ibsng رو اجرا کن :
[CODE]/./usr/local/IBSng/scripts/setup.py[/CODE]
9- طبق راهنمایی برنامه نصب هر بار باید برای انجام مراحل گزینه مورد نیاز رو انتخاب کنی..من ترتیب شماره گزینه ها رو با توضیحش به ترتیب میزارم:
[CODE]
1 Install
2 Test DB Connection and Continue
2 Compile Configuration and Continue
1 Import Tables and Continue
Enter System password
1 Copy ibs.conf to '/etc/httpd/conf.d'
2 Chown apache directories to 'apache'
5 Continue
1 Copy logrotate Conf to /etc/logrotate.d
3 Continue
1 Copy Redhat init file to /etc/init.d
2 Set IBSng to start on reboot
b Back to main menu
x Exit
[/CODE]
در صورتی که ارور خاصی نگرفتید نصب موفقیت امیز بوده
10-سرویس های وب و دیتابیس رو ریستارت و سرویس ibsng رو استارت کن:
[CODE]
service httpd restart
service postgresql restart
service IBSng start
[/CODE]
11-از طریق وب به ادرس زیر برو و با یوزر system پسوردی که در مرحله نصب دادی لاگین شو
[CODE]http://server_ip_address/IBSng/admin[/CODE]
و حالا میتونی اکانتینگت رو تنطیم کنی که خودش داستانی دیگه هست!
دوست عزيز ممنون از راهنمايي مبسوط شما
[root@oQclp ~]# nano /var/lib/pgsql/data/pg_hba.conf
[root@oQclp ~]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
[root@oQclp ~]# su - postgres
-bash-3.2$ createdb IBSng
createdb: could not connect to database postgres: FATAL: missing or erroneous pg_hba.conf file
HINT: See server log for details.
-bash-3.2$ createuser ibs
Shall the new role be a superuser? (y/n) y
createuser: could not connect to database postgres: FATAL: missing or erroneous pg_hba.conf file
HINT: See server log for details.
-bash-3.2$ createlang plpgsql IBSng
createlang: could not connect to database IBSng: FATAL: missing or erroneous pg_hba.conf file
HINT: See server log for details.
-bash-3.2$
این ارور برای من می یاد ..... کمکککککک:ph34r:
[COLOR="silver"]- - - Updated - - -[/COLOR]
local IBSng ibs trust
# PostgreSQL Client Authentication
Configuration File
# ===================================================
#
# Refer to the PostgreSQL Administrator's Guide, chapter "Client
# Authentication" for a complete description. A short synopsis
# follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
#
# local DATABASE USER METHOD [OPTION]
# host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
# hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
# hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
#
# (The uppercase items must be replaced by actual values.)
#
# The first field is the connection type: "local" is a Unix-domain socket,
# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
#
# DATABASE can be "all", "sameuser", "samerole", a database name, or
# a comma-separated list thereof.
#
# USER can be "all", a user name, a group name prefixed with "+", or
# a comma-separated list thereof. In both the DATABASE and USER fields
# you can also write a file name prefixed with "@" to include names from
# a separate file.
#
# CIDR-ADDRESS specifies the set of hosts the record matches.
# It is made up of an IP address and a CIDR mask that is an integer
# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
# the number of significant bits in the mask. Alternatively, you can write
# an IP address and netmask in separate columns to specify the set of hosts.
#
# METHOD can be "trust", "reject", "md5", "crypt", "password",
سیستم عامل شما چیست ؟
[QUOTE][RIGHT][COLOR=#333333]سیستم عامل شما چیست ؟[/COLOR][/RIGHT][/QUOTE]
CentOS
Version ?