Вы находитесь на странице: 1из 33

31

,
( ),

- .


.
50-34.698, 19.101, 19.105,
19.106, 19.505.


1 ...........................................................................................................................................4
1.1 ....................................................................................................................4
1.2 ..............................................................................................................4
1.2.1 .......................................................... 4
1.2.2 ..................................................... 4
1.2.3 ......................................................................................... 5
1.2.4 ........................................................................................... 5
1.3 ..............................................5
1.4 ...........................................................................................7
1.5 ..............................................................................7
2 ................................................................................................8
2.1 ................................................8
2.2 ......................................................................................................................8
2.3 .......................................................................................8
2.4 ...................................................................9
2.5 .................................................................9
3 ......................................................................................................................10
3.1 ..................................................................................................................10
3.2 .....................................................................................................10
3.2.1 JRE........................................................................................ 10
3.2.2 PostgreSQL ................................................................................................ 13
3.2.3 MongoDB ............................................................................ 13
3.2.4 Tomcat ............................................................................... 14
3.2.5 ............................................................... 15
3.3 ....................................................................................16
4 .......................................................................................................................17
4.1 ..........................................................................................17
4.2 ..........................................................................................19
4.3 ................................................................................................................21
4.5 ..............................................................24
5 ....................................................25
5.1 ........................................................................................................26
5.2 ....................................................................................26
5.3 .............................................................................................26
6 .....................................................................................................................27
6.1 ,
....................................................................27
6.2 ........................27
6.3 .........27
6.4 ................................................................................27
7 ..........................................................................................................28
7.1 .................................................................................................................28
8 .......................................................................................................................29

1
1.1
:

;
.
1.2
:
1) ;
2) ;
3) ;
4) .
, ,
.
1.2.1


.



. ,


.
1.2.2
2.


. ,

.
( ) ()
.

,


,
, .
1.2.3

,
, ,
MS Office Excel PDF.
1.2.4
- ,
( )
,
.
:

;

;
(
)
.
1.3

.
,
, .
:
(
);
.
:
;
;

;
;
.

,

.

, ,

.

,
.
.

,
.
:

;
;
;
;
;
.

,

, , ,
.


.
.



.
.

.

,
- .
1.4

:
1)
, ,
( Apache Tomcat,
Linux);
2)

( PostgreSQL);
3)

.
:
1) ;
2) ,
-.

,

.
1.5

:
;
( ).

2
2.1

,

.
2.2
-
(-).

(), - ( )
(-, GUI).
1.
1 -


()


(),
()

2.3
,
:
: 8 , 2 ;
: 32 ;
: 2 1 RAID1.
100 /.

-. -
:
Internet Explorer ( 10.0 );
Google Chrome ( 34.0.1847.131 );
Mozilla Firefox ( 28.0 );
Opera ( 18.0.1284.68 );
Safari ( 7.0 ).

2.4


XML- .
SFTP-
.

.
2.5

, xls pdf.

10

3
3.1

( ) 2.
2 -

JRE
PostgreSQL

7 update 80
9.3

MongoDB

2.8.0

Spring Framework

4.2.0

Tomcat

7.0.61

3.2

():
1) JRE.
2) PostgreSQL.
3) MongoDB.
4) Tomcat.
5) .
3.2.1 JRE
, root,
JRE /usr/local .
jre-7u17-linux-i586.tar.gz:
# cp jre-7u17-linux-i586.tar.gz /usr/local/
# cd /usr/local
# tar -zxvf jre-7u17-linux-i586.tar.gz

jre1.7.0_17. ,
, jre, :
# mv jre1.7.0_17 jre

11

- Mozilla (Iceweasel) (
root)
JRE (libnpjp2.so).
:
1) :
# cd /usr/lib/mozilla/plugins

2) , :
) 32- JRE :
# ln -s /usr/local/jre/lib/i386/libnpjp2.so

) 64- :
# ln -s /usr/local/jre/lib/amd64/libnpjp2.so

, .
Tools -> Add-ons, Plugins.
( 1).

1
JRE,
,
libnpjp2.so .
about:config.
, .
Filter java java.default_java_location_others.
, JRE.
/usr/local/jre 2.

12

2
- .

http://java.com/ru/download/help/testvm.xml/.
Java- ( 3), Run.

3 - Java-
JRE , ,
4.

13

3.2.2 PostgreSQL
PostgreSQL ,
:
denis@s0:~$ lsb_release -c
Codename:

precise

.
/etc/apt/sources.list.d/pgdg.list

:
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main

precise - .
:
denis@s0:~$ wget --quiet -O http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc wget --quiet -O http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add OK

:
denis@s0:~$ sudo apt-get update

Get:1 http://ru.archive.ubuntu.com precise Release.gpg [198 B]


Get:2 http://apt.postgresql.org precise-pgdg Release.gpg [836 B]
...
Fetched 3,054 kB in 3s (850 kB/s)
Reading package lists... Done

, :
denis@s0:~$ sudo apt-get install postgresql-9.3 postgres-contrib-9.3

Reading package lists... Done


...
update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to
provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
* Starting PostgreSQL 9.3 database server

PostgreSQL .
3.2.3 MongoDB
MongoDB, :

[ OK ]

14

1) /etc/apt/sources.list:
sudo gedit /etc/apt/sources.list

:
#### MonoDB
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

2) GPG :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

3) MongoDB:
sudo apt-get update
sudo apt-get install mongodb-10gen

4) MongoDB , :
mongo

(
2.0.4):
MongoDB shell version: 2.0.4
connecting to: test

3.2.4 Tomcat
Tomcat
: http://tomcat.apache.org/download-70.cgi.
( ZIP)
.
Tomcat JDK
JAVA_HOME, JDK.
JAVA_HOME,
, JDK.
/usr/local/jdk1.7.
export JAVA_HOME=/usr/local/jdk1.7

CATALINA_HOME.
,
Tomcat. :
export CATALINA_HOME=/usr/home/apache-tomcat-7.0

Servlet bin
Tomcat startup.sh.

15

, Tomcat , -
URL:
http://localhost:8080

- Tomcat.
3.2.5
PG gd:
su postgres
psql
CREATE DATABASE gd WITH TEMPLATE template0;
\q

schema.sql :
psql < schema.sql

Tomcat gd.
:
vi /etc/tomcat7/server.xml

:
<Resource name="jdbc/gdDS" auth="Container"
type="javax.sql.DataSource"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://127.0.0.1:5432/gd?charSet=UTF-8"
username="postgres" password="forever"
maxActive="20" maxIdle="10" maxWait="-1"/>

GlobalNamingResources.
Tomcat:
sudo service tomcat7 stop

web-api Tomcat /api:


cp web-api.war /var/lib/tomcat7/webapps/api.war

web-app Tomcat /
cp web-app.war /var/lib/tomcat7/webapps/ROOT.war

Tomcat:
sudo service tomcat7 start

16

3.3
,
( 5).

17

4
4.1

( 6).

6
:
;
.

18

(
7).

7

.
( 8).

19

8
:
, , ;
;
;
;
;
;
, ,
;
.

( 7).
:
1)

20

2) 7).
3)

4) ).
5) :
() ;
;
;

;
.
6)
;

21

7) .

9
4.2


.
( 10) :
( 10, 1);
( 10, 2);
( 10, 3).
:
;
;
;

22

10
, ,
REJECT,
.
, ,
PROCESS,
.
,

.
4.3
, ,
.
: , ,
ID, , ( 11).

23

11

.
( 12).

12
IP-
. IP-, +
. IP-.

( 11).
( 13).

24

13
:
1) IP-
.
2)

3)
.

( 13)
.
( 14).

14

. , ,
8.
,
, ( 13)

25

.
( 15).

15


.
,
, ( 13)
. ( 16).

16


.

26

API
API
( 13). API ( 17).

17 API
4.5

.

27

5

.
.

, . ,
.
.

cron.
c PostgreSQL:
1) Postgresql (large objects)
pg_largeobjects. , ,
pg_largeobjects.
Postgresql.
. ,
vacuumlo, postgresql-contrib.
pg_largeobjects , ,
.
cron $path_to_u/vacuumlo $database, $database ,
$path_to_u vacuumlo.
2) Postgresql UPDATE DELETE
( ).
: vacuum.
VACUUM .
, ,
. , vacuum
, .
VACUUM: autovacuum.
, Postgresql
autovacuum . ,
.
3) WAL- ( )
, .
WAL ,
pg_xlog, .

28

, pg_xlog,
.
postgres.
5.1
pg_dump -Fc database_name_here > database.bak

5.2

dropdb database_name_here

5.3
:
,

CREATE DATABASE "gd" WITH OWNER "postgres" TEMPLATE template0 ENCODING 'UTF8'
LC_COLLATE 'ru_RU.UTF8' LC_CTYPE 'ru_RU.UTF8';
pg_restore -Fc -d oug < database.bak

29

6
6.1
,

-
- .
,
, ,
, ()
.
6.2

. ,
, .
6.3


.
, ,

,
.
6.4

.

,
.

30

7
:
;
, . 7.1.
7.1
,
.

1.
2.
3.
4.
5.
6.

7.
8.

.

.

.


.
:
-
;
- ivanov789;
- .

.
.
6

.
.





.

.

.


.

. 6
,
8.

31

Excel

PDF

PKI

SSH

SFTP

VPN

XML

()
-

,
Microsoft Microsoft Windows, Windows NT Mac OS,
MS Office.
Portable Document Format
, Adobe Systems
PostScript.
Public Key Infrastructure ,
(, , ..),
,
. PKI

:
;
,
;
,
;

,
.
, PKI ,

Secure Shell
,

TCP- (,
).
SSH File Transfer Protocol ,

.
Virtual Private Network ,

( ) (, ).
,
(, ),


(, ,
, ,
).
eXtensible Markup Language
.

( ).

.
-


,
(XML, JSON ..).
.

32

.

.
, , .
.

33


()

. - - () .