OCS Inventory NG導入
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*DBの設定 [#rd4b57b5]
mysqlをインストールする。
[root@inventory ~]# yum install mysql-server
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will b...
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for pa...
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be insta...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Version ...
========================================================...
Installing:
mysql-server x86_64 5.1.73-3.el...
Installing for dependencies:
mysql x86_64 5.1.73-3.el...
Transaction Summary
========================================================...
Install 2 Package(s)
Total download size: 9.5 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mysql-5.1.73-3.el6_5.x86_64.rpm ...
(2/2): mysql-server-5.1.73-3.el6_5.x86_64.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mysql-5.1.73-3.el6_5.x86_64 ...
Installing : mysql-server-5.1.73-3.el6_5.x86_64 ...
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 ...
Verifying : mysql-5.1.73-3.el6_5.x86_64 ...
Installed:
mysql-server.x86_64 0:5.1.73-3.el6_5
Dependency Installed:
mysql.x86_64 0:5.1.73-3.el6_5
Complete!
[root@inventory ~]#
**mysql設定 [#o364275c]
[root@inventory ~]# vi /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent ...
symbolic-links=0
character-set-server = utf8 # 追加
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
**mysql起動 [#s9c41991]
[root@inventory ~]# service mysqld start
MySQL データベースを初期化中: Installing MySQL system t...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your s...
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USE...
To do so, start the server, then issue the following com...
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h inventory.hanzou.jp passw...
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug sc...
...
mysqld を起動中: ...
[root@inventory ~]#
**mysqld自動起動設定 [#c5c276b1]
[root@inventory ~]# chkconfig mysqld on
[root@inventory ~]#
**mysql初期設定 [#l3f671a9]
[root@inventory ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FO...
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP ...
In order to log into MySQL to secure it, we'll need the ...
password for the root user. If you've just installed My...
you haven't set the root password yet, the password will...
so you should just press enter here.
Enter current password for root (enter for none): ←空E...
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log in...
root user without the proper authorisation.
Set root password? [Y/n] ←空ENTER(rootパスワード設定)
New password: ←rootパスワード応答
Re-enter new password: ←rootパスワード応答(確認)
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, ...
to log into MySQL without having to have a user account ...
them. This is intended only for testing, and to make th...
go a bit smoother. You should remove them before moving...
production environment.
Remove anonymous users? [Y/n] ←空ENTER(匿名ユーザー削除)
... Success!
Normally, root should only be allowed to connect from 'l...
ensures that someone cannot guess at the root password f...
Disallow root login remotely? [Y/n] ←空ENTER(リモート...
... Success!
By default, MySQL comes with a database named 'test' tha...
access. This is also intended only for testing, and sho...
before moving into a production environment.
Remove test database and access to it? [Y/n] ←空ENTER(...
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all chan...
will take effect immediately.
Reload privilege tables now? [Y/n] ←空ENTER
... Success!
Cleaning up...
All done! If you've completed all of the above steps, y...
installation should now be secure.
Thanks for using MySQL!
[root@inventory ~]#
*データベースの作成 [#r9b668e5]
[root@inventory ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. ...
Oracle is a registered trademark of Oracle Corporation a...
affiliates. Other names may be trademarks of their respe...
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the cu...
mysql> create database ocsweb;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on ocsweb.* to ocs@localhost...
Query OK, 0 rows affected (0.00 sec)
mysql> alter database `ocsweb` default character set utf...
Query OK, 1 row affected (0.00 sec)
mysql> \q
Bye
[root@inventory ~]#
*epelレポジトリを使って、ocsinventoryのインストールを行う...
[root@inventory ~]# yum install --enablerepo=epel ocsinv...
Loaded plugins: refresh-packagekit, security
epel/metalink ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ocsinventory-server.noarch 0:1.3.3-5.el6 wi...
--> Processing Dependency: perl(XML::Simple) for package...
--> Processing Dependency: perl(XML::Entities) for packa...
--> Processing Dependency: perl(SOAP::Transport::HTTP2) ...
--> Processing Dependency: perl(SOAP::Lite) for package:...
--> Processing Dependency: perl(Net::IP) for package: oc...
--> Processing Dependency: perl(DBD::mysql) for package:...
--> Processing Dependency: perl(Compress::Zlib) for pack...
--> Processing Dependency: perl(Apache::DBI) for package...
--> Processing Dependency: mod_perl for package: ocsinve...
--> Running transaction check
---> Package mod_perl.x86_64 0:2.0.4-10.el6 will be inst...
--> Processing Dependency: perl(BSD::Resource) for packa...
---> Package perl-Apache-DBI.noarch 0:1.09-1.el6 will be...
--> Processing Dependency: perl(Digest::SHA1) for packag...
--> Processing Dependency: perl(DBI) for package: perl-A...
---> Package perl-Apache2-SOAP.noarch 0:0.73-3.el6 will ...
---> Package perl-Compress-Zlib.x86_64 0:2.021-136.el6 w...
--> Processing Dependency: perl(IO::Uncompress::Gunzip) ...
--> Processing Dependency: perl(IO::Compress::Gzip::Cons...
--> Processing Dependency: perl(IO::Compress::Gzip) >= 2...
--> Processing Dependency: perl(IO::Compress::Base::Comm...
--> Processing Dependency: perl(Compress::Raw::Zlib) >= ...
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be...
---> Package perl-Net-IP.noarch 0:1.25-13.el6 will be in...
---> Package perl-SOAP-Lite.noarch 0:0.710.10-3.el6 will...
--> Processing Dependency: perl(URI::_userpass) for pack...
--> Processing Dependency: perl(URI::_server) for packag...
--> Processing Dependency: perl(URI::Escape) for package...
--> Processing Dependency: perl(URI) for package: perl-S...
--> Processing Dependency: perl(MIME::Lite) for package:...
---> Package perl-XML-Entities.noarch 0:1.0000-1.el6 wil...
--> Processing Dependency: perl(LWP::UserAgent) for pack...
---> Package perl-XML-Simple.noarch 0:2.18-6.el6 will be...
--> Processing Dependency: perl(XML::Parser) for package...
--> Running transaction check
---> Package perl-BSD-Resource.x86_64 0:1.29.03-3.el6 wi...
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-136.e...
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be insta...
---> Package perl-Digest-SHA1.x86_64 0:2.12-2.el6 will b...
---> Package perl-IO-Compress-Base.x86_64 0:2.021-136.el...
---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-136.el...
---> Package perl-MIME-Lite.noarch 0:3.027-2.el6 will be...
--> Processing Dependency: perl(MIME::Types) >= 1.28 for...
--> Processing Dependency: perl(Mail::Address) for packa...
--> Processing Dependency: perl(Email::Date::Format) for...
---> Package perl-URI.noarch 0:1.40-2.el6 will be instal...
---> Package perl-XML-Parser.x86_64 0:2.36-7.el6 will be...
---> Package perl-libwww-perl.noarch 0:5.833-2.el6 will ...
--> Processing Dependency: perl-HTML-Parser >= 3.33 for ...
--> Processing Dependency: perl(HTML::Entities) for pack...
--> Running transaction check
---> Package perl-Email-Date-Format.noarch 0:1.002-5.el6...
---> Package perl-HTML-Parser.x86_64 0:3.64-2.el6 will b...
--> Processing Dependency: perl(HTML::Tagset) >= 3.03 fo...
--> Processing Dependency: perl(HTML::Tagset) for packag...
---> Package perl-MIME-Types.noarch 0:1.28-2.el6 will be...
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be ...
--> Processing Dependency: perl(Date::Parse) for package...
--> Processing Dependency: perl(Date::Format) for packag...
--> Running transaction check
---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will b...
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will b...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Ver...
========================================================...
Installing:
ocsinventory-server noarch 1.3...
Installing for dependencies:
mod_perl x86_64 2.0...
perl-Apache-DBI noarch 1.0...
perl-Apache2-SOAP noarch 0.7...
perl-BSD-Resource x86_64 1.2...
perl-Compress-Raw-Zlib x86_64 1:2...
perl-Compress-Zlib x86_64 2.0...
perl-DBD-MySQL x86_64 4.0...
perl-DBI x86_64 1.6...
perl-Digest-SHA1 x86_64 2.1...
perl-Email-Date-Format noarch 1.0...
perl-HTML-Parser x86_64 3.6...
perl-HTML-Tagset noarch 3.2...
perl-IO-Compress-Base x86_64 2.0...
perl-IO-Compress-Zlib x86_64 2.0...
perl-MIME-Lite noarch 3.0...
perl-MIME-Types noarch 1.2...
perl-MailTools noarch 2.0...
perl-Net-IP noarch 1.2...
perl-SOAP-Lite noarch 0.7...
perl-TimeDate noarch 1:1...
perl-URI noarch 1.4...
perl-XML-Entities noarch 1.0...
perl-XML-Parser x86_64 2.3...
perl-XML-Simple noarch 2.1...
perl-libwww-perl noarch 5.8...
Transaction Summary
========================================================...
Install 26 Package(s)
Total download size: 6.0 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/26): mod_perl-2.0.4-10.el6.x86_64.rpm ...
(2/26): ocsinventory-server-1.3.3-5.el6.noarch.rpm ...
(3/26): perl-Apache-DBI-1.09-1.el6.noarch.rpm ...
(4/26): perl-Apache2-SOAP-0.73-3.el6.noarch.rpm ...
(5/26): perl-BSD-Resource-1.29.03-3.el6.x86_64.rpm ...
(6/26): perl-Compress-Raw-Zlib-2.021-136.el6.x86_64.rpm ...
(7/26): perl-Compress-Zlib-2.021-136.el6.x86_64.rpm ...
(8/26): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm ...
(9/26): perl-DBI-1.609-4.el6.x86_64.rpm ...
(10/26): perl-Digest-SHA1-2.12-2.el6.x86_64.rpm ...
(11/26): perl-Email-Date-Format-1.002-5.el6.noarch.rpm ...
(12/26): perl-HTML-Parser-3.64-2.el6.x86_64.rpm ...
(13/26): perl-HTML-Tagset-3.20-4.el6.noarch.rpm ...
(14/26): perl-IO-Compress-Base-2.021-136.el6.x86_64.rpm ...
(15/26): perl-IO-Compress-Zlib-2.021-136.el6.x86_64.rpm ...
(16/26): perl-MIME-Lite-3.027-2.el6.noarch.rpm ...
(17/26): perl-MIME-Types-1.28-2.el6.noarch.rpm ...
(18/26): perl-MailTools-2.04-4.el6.noarch.rpm ...
(19/26): perl-Net-IP-1.25-13.el6.noarch.rpm ...
(20/26): perl-SOAP-Lite-0.710.10-3.el6.noarch.rpm ...
(21/26): perl-TimeDate-1.16-11.1.el6.noarch.rpm ...
(22/26): perl-URI-1.40-2.el6.noarch.rpm ...
(23/26): perl-XML-Entities-1.0000-1.el6.noarch.rpm ...
(24/26): perl-XML-Parser-2.36-7.el6.x86_64.rpm ...
(25/26): perl-XML-Simple-2.18-6.el6.noarch.rpm ...
(26/26): perl-libwww-perl-5.833-2.el6.noarch.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-URI-1.40-2.el6.noarch ...
Installing : perl-IO-Compress-Base-2.021-136.el6.x86_6...
Installing : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x8...
Installing : perl-DBI-1.609-4.el6.x86_64 ...
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 ...
Installing : perl-IO-Compress-Zlib-2.021-136.el6.x86_6...
Installing : perl-Compress-Zlib-2.021-136.el6.x86_64 ...
Installing : perl-Net-IP-1.25-13.el6.noarch ...
Installing : perl-HTML-Tagset-3.20-4.el6.noarch ...
Installing : perl-HTML-Parser-3.64-2.el6.x86_64 ...
Installing : perl-libwww-perl-5.833-2.el6.noarch ...
Installing : perl-XML-Entities-1.0000-1.el6.noarch ...
Installing : perl-XML-Parser-2.36-7.el6.x86_64 ...
Installing : perl-XML-Simple-2.18-6.el6.noarch ...
Installing : perl-MIME-Types-1.28-2.el6.noarch ...
Installing : perl-BSD-Resource-1.29.03-3.el6.x86_64 ...
Installing : mod_perl-2.0.4-10.el6.x86_64 ...
Installing : perl-Email-Date-Format-1.002-5.el6.noarch...
Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch ...
Installing : perl-MailTools-2.04-4.el6.noarch ...
Installing : perl-MIME-Lite-3.027-2.el6.noarch ...
Installing : perl-SOAP-Lite-0.710.10-3.el6.noarch ...
Installing : perl-Apache2-SOAP-0.73-3.el6.noarch ...
Installing : perl-Digest-SHA1-2.12-2.el6.x86_64 ...
Installing : perl-Apache-DBI-1.09-1.el6.noarch ...
Installing : ocsinventory-server-1.3.3-5.el6.noarch ...
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 ...
Verifying : perl-Digest-SHA1-2.12-2.el6.x86_64 ...
Verifying : perl-DBI-1.609-4.el6.x86_64 ...
Verifying : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x8...
Verifying : perl-XML-Simple-2.18-6.el6.noarch ...
Verifying : perl-Apache2-SOAP-0.73-3.el6.noarch ...
Verifying : perl-Apache-DBI-1.09-1.el6.noarch ...
Verifying : ocsinventory-server-1.3.3-5.el6.noarch ...
Verifying : 1:perl-TimeDate-1.16-11.1.el6.noarch ...
Verifying : perl-libwww-perl-5.833-2.el6.noarch ...
Verifying : perl-XML-Entities-1.0000-1.el6.noarch ...
Verifying : perl-IO-Compress-Zlib-2.021-136.el6.x86_6...
Verifying : perl-Email-Date-Format-1.002-5.el6.noarch...
Verifying : perl-IO-Compress-Base-2.021-136.el6.x86_6...
Verifying : perl-BSD-Resource-1.29.03-3.el6.x86_64 ...
Verifying : perl-MIME-Types-1.28-2.el6.noarch ...
Verifying : perl-MIME-Lite-3.027-2.el6.noarch ...
Verifying : perl-URI-1.40-2.el6.noarch ...
Verifying : perl-MailTools-2.04-4.el6.noarch ...
Verifying : perl-HTML-Tagset-3.20-4.el6.noarch ...
Verifying : perl-Compress-Zlib-2.021-136.el6.x86_64 ...
Verifying : mod_perl-2.0.4-10.el6.x86_64 ...
Verifying : perl-Net-IP-1.25-13.el6.noarch ...
Verifying : perl-XML-Parser-2.36-7.el6.x86_64 ...
Verifying : perl-HTML-Parser-3.64-2.el6.x86_64 ...
Verifying : perl-SOAP-Lite-0.710.10-3.el6.noarch ...
Installed:
ocsinventory-server.noarch 0:1.3.3-5.el6
Dependency Installed:
mod_perl.x86_64 0:2.0.4-10.el6 per...
perl-Apache2-SOAP.noarch 0:0.73-3.el6 per...
perl-Compress-Raw-Zlib.x86_64 1:2.021-136.el6 per...
perl-DBD-MySQL.x86_64 0:4.013-3.el6 per...
perl-Digest-SHA1.x86_64 0:2.12-2.el6 per...
perl-HTML-Parser.x86_64 0:3.64-2.el6 per...
perl-IO-Compress-Base.x86_64 0:2.021-136.el6 per...
perl-MIME-Lite.noarch 0:3.027-2.el6 per...
perl-MailTools.noarch 0:2.04-4.el6 per...
perl-SOAP-Lite.noarch 0:0.710.10-3.el6 per...
perl-URI.noarch 0:1.40-2.el6 per...
perl-XML-Parser.x86_64 0:2.36-7.el6 per...
perl-libwww-perl.noarch 0:5.833-2.el6
Complete!
[root@inventory ~]#
*epelレポジトリを使って、ocsinventory-reportsのインストー...
[root@inventory ~]# yum install --enablerepo=epel ocsinv...
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ocsinventory-reports.noarch 0:1.3.3-5.el6 w...
--> Processing Dependency: php-zip for package: ocsinven...
--> Processing Dependency: php-mysql for package: ocsinv...
--> Processing Dependency: php-gd for package: ocsinvent...
--> Processing Dependency: php-domxml for package: ocsin...
--> Processing Dependency: php for package: ocsinventory...
--> Processing Dependency: nmap for package: ocsinventor...
--> Running transaction check
---> Package nmap.x86_64 2:5.51-3.el6 will be installed
---> Package php.x86_64 0:5.3.3-27.el6_5.1 will be insta...
--> Processing Dependency: php-cli(x86-64) = 5.3.3-27.el...
---> Package php-common.x86_64 0:5.3.3-27.el6_5.1 will b...
---> Package php-gd.x86_64 0:5.3.3-27.el6_5.1 will be in...
--> Processing Dependency: libXpm.so.4()(64bit) for pack...
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5.1 will be...
--> Processing Dependency: php-pdo(x86-64) for package: ...
---> Package php-xml.x86_64 0:5.3.3-27.el6_5.1 will be i...
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be instal...
---> Package php-cli.x86_64 0:5.3.3-27.el6_5.1 will be i...
---> Package php-pdo.x86_64 0:5.3.3-27.el6_5.1 will be i...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Version ...
========================================================...
Installing:
ocsinventory-reports noarch 1.3.3-5.e...
Installing for dependencies:
libXpm x86_64 3.5.10-2....
nmap x86_64 2:5.51-3....
php x86_64 5.3.3-27....
php-cli x86_64 5.3.3-27....
php-common x86_64 5.3.3-27....
php-gd x86_64 5.3.3-27....
php-mysql x86_64 5.3.3-27....
php-pdo x86_64 5.3.3-27....
php-xml x86_64 5.3.3-27....
Transaction Summary
========================================================...
Install 10 Package(s)
Total download size: 8.2 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): libXpm-3.5.10-2.el6.x86_64.rpm ...
(2/10): nmap-5.51-3.el6.x86_64.rpm ...
(3/10): ocsinventory-reports-1.3.3-5.el6.noarch.rpm ...
(4/10): php-5.3.3-27.el6_5.1.x86_64.rpm ...
(5/10): php-cli-5.3.3-27.el6_5.1.x86_64.rpm ...
(6/10): php-common-5.3.3-27.el6_5.1.x86_64.rpm ...
(7/10): php-gd-5.3.3-27.el6_5.1.x86_64.rpm ...
(8/10): php-mysql-5.3.3-27.el6_5.1.x86_64.rpm ...
(9/10): php-pdo-5.3.3-27.el6_5.1.x86_64.rpm ...
(10/10): php-xml-5.3.3-27.el6_5.1.x86_64.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-common-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-pdo-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-mysql-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-cli-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-xml-5.3.3-27.el6_5.1.x86_64 ...
Installing : 2:nmap-5.51-3.el6.x86_64 ...
Installing : libXpm-3.5.10-2.el6.x86_64 ...
Installing : php-gd-5.3.3-27.el6_5.1.x86_64 ...
Installing : ocsinventory-reports-1.3.3-5.el6.noarch ...
Verifying : php-pdo-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-cli-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-gd-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-5.3.3-27.el6_5.1.x86_64 ...
Verifying : libXpm-3.5.10-2.el6.x86_64 ...
Verifying : php-xml-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-mysql-5.3.3-27.el6_5.1.x86_64 ...
Verifying : 2:nmap-5.51-3.el6.x86_64 ...
Verifying : php-common-5.3.3-27.el6_5.1.x86_64 ...
Verifying : ocsinventory-reports-1.3.3-5.el6.noarch ...
Installed:
ocsinventory-reports.noarch 0:1.3.3-5.el6
Dependency Installed:
libXpm.x86_64 0:3.5.10-2.el6 nm...
php.x86_64 0:5.3.3-27.el6_5.1 ph...
php-common.x86_64 0:5.3.3-27.el6_5.1 ph...
php-mysql.x86_64 0:5.3.3-27.el6_5.1 ph...
php-xml.x86_64 0:5.3.3-27.el6_5.1
Complete!
[root@inventory ~]#
*設定変更 [#vf04d2c9]
[root@inventory ~]# vi /usr/share/ocsinventory-reports/o...
CREATE TABLE files (
NAME VARCHAR(255) NOT NULL,
VERSION VARCHAR(255) NOT NULL,
OS VARCHAR(255) NOT NULL,
CONTENT LONGBLOB NOT NULL,
PRIMARY KEY (NAME, OS, VERSION)
) ENGINE=MYISAM;
↓
) ENGINE=INNODB;
CREATE TABLE tags (
Tag VARCHAR(255) NOT NULL default '',
Login VARCHAR(255) NOT NULL default '',
PRIMARY KEY (Tag,Login),
KEY Tag (Tag),
KEY Login (Login)
) ENGINE=MYISAM;
↓
) ENGINE=INNODB;
[root@inventory ~]#
*httpdの開始 [#oe0a3dd0]
[root@inventory ~]# service httpd start
httpd を起動中: ...
[root@inventory ~]#
*インストール&設定 [#la4c1326]
**ブラウザで以下のアドレスにアクセスをする [#eaf6d983]
http://サーバーのIPアドレス/ocsreports/install.php
&ref(WS000000.jpg);
以下を入力し、Sendボタンを押す。
MySql login :データベースのユーザ(ocs)
MySql password :パスワード(設定したもの)
MySql HostName :データベースサーバー名(localhost)
※ERROR: can't write in directory (on dbconfig.inc.php), p...
が出る場合は、SELINUXを殺す必要がある。
*以下、書きかけ中 [#fb9b4eef]
終了行:
*DBの設定 [#rd4b57b5]
mysqlをインストールする。
[root@inventory ~]# yum install mysql-server
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will b...
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for pa...
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be insta...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Version ...
========================================================...
Installing:
mysql-server x86_64 5.1.73-3.el...
Installing for dependencies:
mysql x86_64 5.1.73-3.el...
Transaction Summary
========================================================...
Install 2 Package(s)
Total download size: 9.5 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mysql-5.1.73-3.el6_5.x86_64.rpm ...
(2/2): mysql-server-5.1.73-3.el6_5.x86_64.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mysql-5.1.73-3.el6_5.x86_64 ...
Installing : mysql-server-5.1.73-3.el6_5.x86_64 ...
Verifying : mysql-server-5.1.73-3.el6_5.x86_64 ...
Verifying : mysql-5.1.73-3.el6_5.x86_64 ...
Installed:
mysql-server.x86_64 0:5.1.73-3.el6_5
Dependency Installed:
mysql.x86_64 0:5.1.73-3.el6_5
Complete!
[root@inventory ~]#
**mysql設定 [#o364275c]
[root@inventory ~]# vi /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent ...
symbolic-links=0
character-set-server = utf8 # 追加
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
**mysql起動 [#s9c41991]
[root@inventory ~]# service mysqld start
MySQL データベースを初期化中: Installing MySQL system t...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your s...
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USE...
To do so, start the server, then issue the following com...
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h inventory.hanzou.jp passw...
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug sc...
...
mysqld を起動中: ...
[root@inventory ~]#
**mysqld自動起動設定 [#c5c276b1]
[root@inventory ~]# chkconfig mysqld on
[root@inventory ~]#
**mysql初期設定 [#l3f671a9]
[root@inventory ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FO...
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP ...
In order to log into MySQL to secure it, we'll need the ...
password for the root user. If you've just installed My...
you haven't set the root password yet, the password will...
so you should just press enter here.
Enter current password for root (enter for none): ←空E...
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log in...
root user without the proper authorisation.
Set root password? [Y/n] ←空ENTER(rootパスワード設定)
New password: ←rootパスワード応答
Re-enter new password: ←rootパスワード応答(確認)
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, ...
to log into MySQL without having to have a user account ...
them. This is intended only for testing, and to make th...
go a bit smoother. You should remove them before moving...
production environment.
Remove anonymous users? [Y/n] ←空ENTER(匿名ユーザー削除)
... Success!
Normally, root should only be allowed to connect from 'l...
ensures that someone cannot guess at the root password f...
Disallow root login remotely? [Y/n] ←空ENTER(リモート...
... Success!
By default, MySQL comes with a database named 'test' tha...
access. This is also intended only for testing, and sho...
before moving into a production environment.
Remove test database and access to it? [Y/n] ←空ENTER(...
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all chan...
will take effect immediately.
Reload privilege tables now? [Y/n] ←空ENTER
... Success!
Cleaning up...
All done! If you've completed all of the above steps, y...
installation should now be secure.
Thanks for using MySQL!
[root@inventory ~]#
*データベースの作成 [#r9b668e5]
[root@inventory ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. ...
Oracle is a registered trademark of Oracle Corporation a...
affiliates. Other names may be trademarks of their respe...
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the cu...
mysql> create database ocsweb;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on ocsweb.* to ocs@localhost...
Query OK, 0 rows affected (0.00 sec)
mysql> alter database `ocsweb` default character set utf...
Query OK, 1 row affected (0.00 sec)
mysql> \q
Bye
[root@inventory ~]#
*epelレポジトリを使って、ocsinventoryのインストールを行う...
[root@inventory ~]# yum install --enablerepo=epel ocsinv...
Loaded plugins: refresh-packagekit, security
epel/metalink ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ocsinventory-server.noarch 0:1.3.3-5.el6 wi...
--> Processing Dependency: perl(XML::Simple) for package...
--> Processing Dependency: perl(XML::Entities) for packa...
--> Processing Dependency: perl(SOAP::Transport::HTTP2) ...
--> Processing Dependency: perl(SOAP::Lite) for package:...
--> Processing Dependency: perl(Net::IP) for package: oc...
--> Processing Dependency: perl(DBD::mysql) for package:...
--> Processing Dependency: perl(Compress::Zlib) for pack...
--> Processing Dependency: perl(Apache::DBI) for package...
--> Processing Dependency: mod_perl for package: ocsinve...
--> Running transaction check
---> Package mod_perl.x86_64 0:2.0.4-10.el6 will be inst...
--> Processing Dependency: perl(BSD::Resource) for packa...
---> Package perl-Apache-DBI.noarch 0:1.09-1.el6 will be...
--> Processing Dependency: perl(Digest::SHA1) for packag...
--> Processing Dependency: perl(DBI) for package: perl-A...
---> Package perl-Apache2-SOAP.noarch 0:0.73-3.el6 will ...
---> Package perl-Compress-Zlib.x86_64 0:2.021-136.el6 w...
--> Processing Dependency: perl(IO::Uncompress::Gunzip) ...
--> Processing Dependency: perl(IO::Compress::Gzip::Cons...
--> Processing Dependency: perl(IO::Compress::Gzip) >= 2...
--> Processing Dependency: perl(IO::Compress::Base::Comm...
--> Processing Dependency: perl(Compress::Raw::Zlib) >= ...
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be...
---> Package perl-Net-IP.noarch 0:1.25-13.el6 will be in...
---> Package perl-SOAP-Lite.noarch 0:0.710.10-3.el6 will...
--> Processing Dependency: perl(URI::_userpass) for pack...
--> Processing Dependency: perl(URI::_server) for packag...
--> Processing Dependency: perl(URI::Escape) for package...
--> Processing Dependency: perl(URI) for package: perl-S...
--> Processing Dependency: perl(MIME::Lite) for package:...
---> Package perl-XML-Entities.noarch 0:1.0000-1.el6 wil...
--> Processing Dependency: perl(LWP::UserAgent) for pack...
---> Package perl-XML-Simple.noarch 0:2.18-6.el6 will be...
--> Processing Dependency: perl(XML::Parser) for package...
--> Running transaction check
---> Package perl-BSD-Resource.x86_64 0:1.29.03-3.el6 wi...
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-136.e...
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be insta...
---> Package perl-Digest-SHA1.x86_64 0:2.12-2.el6 will b...
---> Package perl-IO-Compress-Base.x86_64 0:2.021-136.el...
---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-136.el...
---> Package perl-MIME-Lite.noarch 0:3.027-2.el6 will be...
--> Processing Dependency: perl(MIME::Types) >= 1.28 for...
--> Processing Dependency: perl(Mail::Address) for packa...
--> Processing Dependency: perl(Email::Date::Format) for...
---> Package perl-URI.noarch 0:1.40-2.el6 will be instal...
---> Package perl-XML-Parser.x86_64 0:2.36-7.el6 will be...
---> Package perl-libwww-perl.noarch 0:5.833-2.el6 will ...
--> Processing Dependency: perl-HTML-Parser >= 3.33 for ...
--> Processing Dependency: perl(HTML::Entities) for pack...
--> Running transaction check
---> Package perl-Email-Date-Format.noarch 0:1.002-5.el6...
---> Package perl-HTML-Parser.x86_64 0:3.64-2.el6 will b...
--> Processing Dependency: perl(HTML::Tagset) >= 3.03 fo...
--> Processing Dependency: perl(HTML::Tagset) for packag...
---> Package perl-MIME-Types.noarch 0:1.28-2.el6 will be...
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be ...
--> Processing Dependency: perl(Date::Parse) for package...
--> Processing Dependency: perl(Date::Format) for packag...
--> Running transaction check
---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will b...
---> Package perl-TimeDate.noarch 1:1.16-11.1.el6 will b...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Ver...
========================================================...
Installing:
ocsinventory-server noarch 1.3...
Installing for dependencies:
mod_perl x86_64 2.0...
perl-Apache-DBI noarch 1.0...
perl-Apache2-SOAP noarch 0.7...
perl-BSD-Resource x86_64 1.2...
perl-Compress-Raw-Zlib x86_64 1:2...
perl-Compress-Zlib x86_64 2.0...
perl-DBD-MySQL x86_64 4.0...
perl-DBI x86_64 1.6...
perl-Digest-SHA1 x86_64 2.1...
perl-Email-Date-Format noarch 1.0...
perl-HTML-Parser x86_64 3.6...
perl-HTML-Tagset noarch 3.2...
perl-IO-Compress-Base x86_64 2.0...
perl-IO-Compress-Zlib x86_64 2.0...
perl-MIME-Lite noarch 3.0...
perl-MIME-Types noarch 1.2...
perl-MailTools noarch 2.0...
perl-Net-IP noarch 1.2...
perl-SOAP-Lite noarch 0.7...
perl-TimeDate noarch 1:1...
perl-URI noarch 1.4...
perl-XML-Entities noarch 1.0...
perl-XML-Parser x86_64 2.3...
perl-XML-Simple noarch 2.1...
perl-libwww-perl noarch 5.8...
Transaction Summary
========================================================...
Install 26 Package(s)
Total download size: 6.0 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/26): mod_perl-2.0.4-10.el6.x86_64.rpm ...
(2/26): ocsinventory-server-1.3.3-5.el6.noarch.rpm ...
(3/26): perl-Apache-DBI-1.09-1.el6.noarch.rpm ...
(4/26): perl-Apache2-SOAP-0.73-3.el6.noarch.rpm ...
(5/26): perl-BSD-Resource-1.29.03-3.el6.x86_64.rpm ...
(6/26): perl-Compress-Raw-Zlib-2.021-136.el6.x86_64.rpm ...
(7/26): perl-Compress-Zlib-2.021-136.el6.x86_64.rpm ...
(8/26): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm ...
(9/26): perl-DBI-1.609-4.el6.x86_64.rpm ...
(10/26): perl-Digest-SHA1-2.12-2.el6.x86_64.rpm ...
(11/26): perl-Email-Date-Format-1.002-5.el6.noarch.rpm ...
(12/26): perl-HTML-Parser-3.64-2.el6.x86_64.rpm ...
(13/26): perl-HTML-Tagset-3.20-4.el6.noarch.rpm ...
(14/26): perl-IO-Compress-Base-2.021-136.el6.x86_64.rpm ...
(15/26): perl-IO-Compress-Zlib-2.021-136.el6.x86_64.rpm ...
(16/26): perl-MIME-Lite-3.027-2.el6.noarch.rpm ...
(17/26): perl-MIME-Types-1.28-2.el6.noarch.rpm ...
(18/26): perl-MailTools-2.04-4.el6.noarch.rpm ...
(19/26): perl-Net-IP-1.25-13.el6.noarch.rpm ...
(20/26): perl-SOAP-Lite-0.710.10-3.el6.noarch.rpm ...
(21/26): perl-TimeDate-1.16-11.1.el6.noarch.rpm ...
(22/26): perl-URI-1.40-2.el6.noarch.rpm ...
(23/26): perl-XML-Entities-1.0000-1.el6.noarch.rpm ...
(24/26): perl-XML-Parser-2.36-7.el6.x86_64.rpm ...
(25/26): perl-XML-Simple-2.18-6.el6.noarch.rpm ...
(26/26): perl-libwww-perl-5.833-2.el6.noarch.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-URI-1.40-2.el6.noarch ...
Installing : perl-IO-Compress-Base-2.021-136.el6.x86_6...
Installing : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x8...
Installing : perl-DBI-1.609-4.el6.x86_64 ...
Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 ...
Installing : perl-IO-Compress-Zlib-2.021-136.el6.x86_6...
Installing : perl-Compress-Zlib-2.021-136.el6.x86_64 ...
Installing : perl-Net-IP-1.25-13.el6.noarch ...
Installing : perl-HTML-Tagset-3.20-4.el6.noarch ...
Installing : perl-HTML-Parser-3.64-2.el6.x86_64 ...
Installing : perl-libwww-perl-5.833-2.el6.noarch ...
Installing : perl-XML-Entities-1.0000-1.el6.noarch ...
Installing : perl-XML-Parser-2.36-7.el6.x86_64 ...
Installing : perl-XML-Simple-2.18-6.el6.noarch ...
Installing : perl-MIME-Types-1.28-2.el6.noarch ...
Installing : perl-BSD-Resource-1.29.03-3.el6.x86_64 ...
Installing : mod_perl-2.0.4-10.el6.x86_64 ...
Installing : perl-Email-Date-Format-1.002-5.el6.noarch...
Installing : 1:perl-TimeDate-1.16-11.1.el6.noarch ...
Installing : perl-MailTools-2.04-4.el6.noarch ...
Installing : perl-MIME-Lite-3.027-2.el6.noarch ...
Installing : perl-SOAP-Lite-0.710.10-3.el6.noarch ...
Installing : perl-Apache2-SOAP-0.73-3.el6.noarch ...
Installing : perl-Digest-SHA1-2.12-2.el6.x86_64 ...
Installing : perl-Apache-DBI-1.09-1.el6.noarch ...
Installing : ocsinventory-server-1.3.3-5.el6.noarch ...
Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 ...
Verifying : perl-Digest-SHA1-2.12-2.el6.x86_64 ...
Verifying : perl-DBI-1.609-4.el6.x86_64 ...
Verifying : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x8...
Verifying : perl-XML-Simple-2.18-6.el6.noarch ...
Verifying : perl-Apache2-SOAP-0.73-3.el6.noarch ...
Verifying : perl-Apache-DBI-1.09-1.el6.noarch ...
Verifying : ocsinventory-server-1.3.3-5.el6.noarch ...
Verifying : 1:perl-TimeDate-1.16-11.1.el6.noarch ...
Verifying : perl-libwww-perl-5.833-2.el6.noarch ...
Verifying : perl-XML-Entities-1.0000-1.el6.noarch ...
Verifying : perl-IO-Compress-Zlib-2.021-136.el6.x86_6...
Verifying : perl-Email-Date-Format-1.002-5.el6.noarch...
Verifying : perl-IO-Compress-Base-2.021-136.el6.x86_6...
Verifying : perl-BSD-Resource-1.29.03-3.el6.x86_64 ...
Verifying : perl-MIME-Types-1.28-2.el6.noarch ...
Verifying : perl-MIME-Lite-3.027-2.el6.noarch ...
Verifying : perl-URI-1.40-2.el6.noarch ...
Verifying : perl-MailTools-2.04-4.el6.noarch ...
Verifying : perl-HTML-Tagset-3.20-4.el6.noarch ...
Verifying : perl-Compress-Zlib-2.021-136.el6.x86_64 ...
Verifying : mod_perl-2.0.4-10.el6.x86_64 ...
Verifying : perl-Net-IP-1.25-13.el6.noarch ...
Verifying : perl-XML-Parser-2.36-7.el6.x86_64 ...
Verifying : perl-HTML-Parser-3.64-2.el6.x86_64 ...
Verifying : perl-SOAP-Lite-0.710.10-3.el6.noarch ...
Installed:
ocsinventory-server.noarch 0:1.3.3-5.el6
Dependency Installed:
mod_perl.x86_64 0:2.0.4-10.el6 per...
perl-Apache2-SOAP.noarch 0:0.73-3.el6 per...
perl-Compress-Raw-Zlib.x86_64 1:2.021-136.el6 per...
perl-DBD-MySQL.x86_64 0:4.013-3.el6 per...
perl-Digest-SHA1.x86_64 0:2.12-2.el6 per...
perl-HTML-Parser.x86_64 0:3.64-2.el6 per...
perl-IO-Compress-Base.x86_64 0:2.021-136.el6 per...
perl-MIME-Lite.noarch 0:3.027-2.el6 per...
perl-MailTools.noarch 0:2.04-4.el6 per...
perl-SOAP-Lite.noarch 0:0.710.10-3.el6 per...
perl-URI.noarch 0:1.40-2.el6 per...
perl-XML-Parser.x86_64 0:2.36-7.el6 per...
perl-libwww-perl.noarch 0:5.833-2.el6
Complete!
[root@inventory ~]#
*epelレポジトリを使って、ocsinventory-reportsのインストー...
[root@inventory ~]# yum install --enablerepo=epel ocsinv...
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ocsinventory-reports.noarch 0:1.3.3-5.el6 w...
--> Processing Dependency: php-zip for package: ocsinven...
--> Processing Dependency: php-mysql for package: ocsinv...
--> Processing Dependency: php-gd for package: ocsinvent...
--> Processing Dependency: php-domxml for package: ocsin...
--> Processing Dependency: php for package: ocsinventory...
--> Processing Dependency: nmap for package: ocsinventor...
--> Running transaction check
---> Package nmap.x86_64 2:5.51-3.el6 will be installed
---> Package php.x86_64 0:5.3.3-27.el6_5.1 will be insta...
--> Processing Dependency: php-cli(x86-64) = 5.3.3-27.el...
---> Package php-common.x86_64 0:5.3.3-27.el6_5.1 will b...
---> Package php-gd.x86_64 0:5.3.3-27.el6_5.1 will be in...
--> Processing Dependency: libXpm.so.4()(64bit) for pack...
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5.1 will be...
--> Processing Dependency: php-pdo(x86-64) for package: ...
---> Package php-xml.x86_64 0:5.3.3-27.el6_5.1 will be i...
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be instal...
---> Package php-cli.x86_64 0:5.3.3-27.el6_5.1 will be i...
---> Package php-pdo.x86_64 0:5.3.3-27.el6_5.1 will be i...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch Version ...
========================================================...
Installing:
ocsinventory-reports noarch 1.3.3-5.e...
Installing for dependencies:
libXpm x86_64 3.5.10-2....
nmap x86_64 2:5.51-3....
php x86_64 5.3.3-27....
php-cli x86_64 5.3.3-27....
php-common x86_64 5.3.3-27....
php-gd x86_64 5.3.3-27....
php-mysql x86_64 5.3.3-27....
php-pdo x86_64 5.3.3-27....
php-xml x86_64 5.3.3-27....
Transaction Summary
========================================================...
Install 10 Package(s)
Total download size: 8.2 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): libXpm-3.5.10-2.el6.x86_64.rpm ...
(2/10): nmap-5.51-3.el6.x86_64.rpm ...
(3/10): ocsinventory-reports-1.3.3-5.el6.noarch.rpm ...
(4/10): php-5.3.3-27.el6_5.1.x86_64.rpm ...
(5/10): php-cli-5.3.3-27.el6_5.1.x86_64.rpm ...
(6/10): php-common-5.3.3-27.el6_5.1.x86_64.rpm ...
(7/10): php-gd-5.3.3-27.el6_5.1.x86_64.rpm ...
(8/10): php-mysql-5.3.3-27.el6_5.1.x86_64.rpm ...
(9/10): php-pdo-5.3.3-27.el6_5.1.x86_64.rpm ...
(10/10): php-xml-5.3.3-27.el6_5.1.x86_64.rpm ...
--------------------------------------------------------...
Total ...
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-common-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-pdo-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-mysql-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-cli-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-5.3.3-27.el6_5.1.x86_64 ...
Installing : php-xml-5.3.3-27.el6_5.1.x86_64 ...
Installing : 2:nmap-5.51-3.el6.x86_64 ...
Installing : libXpm-3.5.10-2.el6.x86_64 ...
Installing : php-gd-5.3.3-27.el6_5.1.x86_64 ...
Installing : ocsinventory-reports-1.3.3-5.el6.noarch ...
Verifying : php-pdo-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-cli-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-gd-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-5.3.3-27.el6_5.1.x86_64 ...
Verifying : libXpm-3.5.10-2.el6.x86_64 ...
Verifying : php-xml-5.3.3-27.el6_5.1.x86_64 ...
Verifying : php-mysql-5.3.3-27.el6_5.1.x86_64 ...
Verifying : 2:nmap-5.51-3.el6.x86_64 ...
Verifying : php-common-5.3.3-27.el6_5.1.x86_64 ...
Verifying : ocsinventory-reports-1.3.3-5.el6.noarch ...
Installed:
ocsinventory-reports.noarch 0:1.3.3-5.el6
Dependency Installed:
libXpm.x86_64 0:3.5.10-2.el6 nm...
php.x86_64 0:5.3.3-27.el6_5.1 ph...
php-common.x86_64 0:5.3.3-27.el6_5.1 ph...
php-mysql.x86_64 0:5.3.3-27.el6_5.1 ph...
php-xml.x86_64 0:5.3.3-27.el6_5.1
Complete!
[root@inventory ~]#
*設定変更 [#vf04d2c9]
[root@inventory ~]# vi /usr/share/ocsinventory-reports/o...
CREATE TABLE files (
NAME VARCHAR(255) NOT NULL,
VERSION VARCHAR(255) NOT NULL,
OS VARCHAR(255) NOT NULL,
CONTENT LONGBLOB NOT NULL,
PRIMARY KEY (NAME, OS, VERSION)
) ENGINE=MYISAM;
↓
) ENGINE=INNODB;
CREATE TABLE tags (
Tag VARCHAR(255) NOT NULL default '',
Login VARCHAR(255) NOT NULL default '',
PRIMARY KEY (Tag,Login),
KEY Tag (Tag),
KEY Login (Login)
) ENGINE=MYISAM;
↓
) ENGINE=INNODB;
[root@inventory ~]#
*httpdの開始 [#oe0a3dd0]
[root@inventory ~]# service httpd start
httpd を起動中: ...
[root@inventory ~]#
*インストール&設定 [#la4c1326]
**ブラウザで以下のアドレスにアクセスをする [#eaf6d983]
http://サーバーのIPアドレス/ocsreports/install.php
&ref(WS000000.jpg);
以下を入力し、Sendボタンを押す。
MySql login :データベースのユーザ(ocs)
MySql password :パスワード(設定したもの)
MySql HostName :データベースサーバー名(localhost)
※ERROR: can't write in directory (on dbconfig.inc.php), p...
が出る場合は、SELINUXを殺す必要がある。
*以下、書きかけ中 [#fb9b4eef]
ページ名: