-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.en
83 lines (69 loc) · 2.47 KB
/
INSTALL.en
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
##### How to install/uninstall pg_stats_reporter? #####
### Directory formation of source which was installed pg_stats_reporter ###
pg_stats_reporter
|
+- bin/ ...................... script which run on command line
|
+- html/
| |
| +- pg_stats_reporter/ ... script which run via HTTP server
| |
| +- package/ ....... jQuery etc
| |
| +- js/ ............ Javascripts for pg_stats_reporter
| |
| +- css/ ........... CSS for pg_stats_reporter
| |
| +- doc/ ........... manual of pg_stats_reporter
|
+- pg_stats_reporter_lib/ .... configure files directory
|
+- module/ .............. php modules of pg_stats_reporter
|
+- template/ ............ template files
|
+- cache/ ............... configure file and cache files of Smarty
|
+- compiled/ ............ compiled files and template files of Smarty
|
+- message/ ............. language files
### How to install pg_stats_reporter? ###
First, please copy source files to http server's directory. Also, you copy
script for command line to /usr/local/bin. And, you should set cache and
compiled directory's permission which can be created file by http server's
user.
This setting example is under following.
$ su
# tar xvfz pg_stats_reporter-16.0.tar.gz
# cp -R pg_stats_reporter/html/pg_stats_reporter /var/www/html
# cp -R pg_stats_reporter/pg_stats_reporter_lib /var/www
# cp pg_stats_reporter/bin/pg_stats_reporter /usr/local/bin
# cd /var/www/pg_stats_reporter_lib
# chown apache.apache cache compiled
### How to set configure file? ###
There is sample file in pg_stats_reporter package.
So you set configure in sample file for your environment.
Setting example is under following.
# cd /var/www/pg_stats_reporter_lib
# cp pg_stats_reporter.ini.sample /etc/pg_stats_reporter.ini
# cd /etc
# vi pg_stats_reporter.ini
----- Set your repository database -----
host = localhost
port = 5432
dbname = postgres
username = postgres
password =
Repository database is pg_statsinfo's database.
### How to uninstall? ###
Please delete directory/files of pg_stats_reporter.
How to delete method's example is under following.
If you want to keep configure file, do not delete /etc/pg_stats_reporter.ini.
$ su
# cd /var/www
# rm -r html/pg_stats_reporter
# rm -r pg_stats_reporter_lib
# cd /usr/local/bin
# rm pg_stats_reporter
# cd /etc
# rm pg_stats_reporter.ini