当先锋百科网

首页 1 2 3 4 5 6 7

Last login: Wed Feb 28 21:00:34 2018 from 192.168.78.1

[root@localhost ~]# yum install -y epel-release

Loaded plugins: fastestmirror

epel/x86_64/metalink                                                                | 6.0 kB  00:00:00

epel                                                                                | 4.7 kB  00:00:00

(1/3): epel/x86_64/group_gz                                                         | 266 kB  00:00:00

Updated:

epel-release.noarch 0:7-11

Complete!

[root@localhost ~]# yum install -y httpd mysql-server php php-mysql php-mbstring php-mcrypt mysql-devel php-gd

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* epel: mirrors.ustc.edu.cn

* extras: mirrors.aliyun.com

* updates: centosc6.centos.org

No package mysql-server available.

Resolving Dependencies

--> Running transaction check

---> Package httpd.x86_64 0:2.4.6-67.el7.centos.6 will be installed

| 2.7 MB  00:03:37

-----------------------------------------------------------------------------------------------------------

Dependency Updated:

e2fsprogs.x86_64 0:1.42.9-10.el7                    e2fsprogs-libs.x86_64 0:1.42.9-10.el7

krb5-libs.x86_64 0:1.15.1-8.el7                     libcom_err.x86_64 0:1.42.9-10.el7

libselinux.x86_64 0:2.5-11.el7                      libselinux-python.x86_64 0:2.5-11.el7

libselinux-utils.x86_64 0:2.5-11.el7                libss.x86_64 0:1.42.9-10.el7

mariadb-libs.x86_64 1:5.5.56-2.el7                  openssl.x86_64 1:1.0.2k-8.el7

openssl-libs.x86_64 1:1.0.2k-8.el7                  pcre.x86_64 0:8.32-17.el7

Complete!

[root@localhost ~]# yum install -y mcrypt libmcrypt libmcrypt-devel

Loaded plugins: fastestmirror

Installed:

libmcrypt-devel.x86_64 0:2.5.8-13.el7                    mcrypt.x86_64 0:2.6.8-11.el7

Dependency Installed:

mhash.x86_64 0:0.9.9.9-10.el7

Complete!

[root@localhost ~]# yum install -y php-pear

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* epel: mirror01.idc.hinet.net

* extras: mirrors.aliyun.com

* updates: centosc6.centos.org

--> Processing Dependency: php-xml for package: 1:php-pear-1.9.4-21.el7.noarch

Installed:

php-pear.noarch 1:1.9.4-21.el7

Dependency Installed:

libxslt.x86_64 0:1.1.28-5.el7   php-process.x86_64 0:5.4.16-43.el7_4   php-xml.x86_64 0:5.4.16-43.el7_4

Complete!

[root@localhost ~]# pear upgrade pear

WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update

WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus"

pear/XML_Util requires PEAR Installer (version >= 1.10.1), installed version is 1.9.4

pear/PEAR requires package "pear/XML_Util" (recommended version 1.4.2), installed version is 1.2.1

pear/pear dependency package "pear/Structures_Graph" downloaded version 1.1.1 is not the recommended version 1.0.4, but may be compatible, use --force to install

pear/Structures_Graph cannot be installed, conflicts with installed packages

downloading Archive_Tar-1.4.3.tgz ...

Starting to download Archive_Tar-1.4.3.tgz (20,682 bytes)

.....done: 20,682 bytes

downloading Console_Getopt-1.4.1.tgz ...

Starting to download Console_Getopt-1.4.1.tgz (5,672 bytes)

...done: 5,672 bytes

upgrade ok: channel://pear.php.net/Archive_Tar-1.4.3

upgrade ok: channel://pear.php.net/Console_Getopt-1.4.1

[root@localhost ~]# pear channel-update pear.php.net

Updating channel "pear.php.net"

Update of Channel "pear.php.net" succeeded

[root@localhost ~]# pear install mail

Did not download optional dependencies: pear/Net_SMTP, use --alldeps to download automatically

pear/Mail can optionally use package "pear/Net_SMTP" (version >= 1.4.1)

downloading Mail-1.4.1.tgz ...

Starting to download Mail-1.4.1.tgz (21,756 bytes)

........done: 21,756 bytes

install ok: channel://pear.php.net/Mail-1.4.1

[root@localhost ~]# pear install Image_Graph-alpha Image_Canvas-alpha Image_Color Numbers_Roman

WARNING: "pear/Image_Color" is deprecated in favor of "pear/Image_Color2"

Did not download optional dependencies: pear/Numbers_Words, use --alldeps to download automatically

pear/Image_Graph can optionally use package "pear/Numbers_Words"

install ok: channel://pear.php.net/Image_Color-1.0.4

install ok: channel://pear.php.net/Numbers_Roman-1.0.2

install ok: channel://pear.php.net/Image_Canvas-0.3.5

install ok: channel://pear.php.net/Image_Graph-0.8.0

[root@localhost ~]# pear install  mail_mime

downloading Mail_Mime-1.10.2.tgz ...

Starting to download Mail_Mime-1.10.2.tgz (36,501 bytes)

..........done: 36,501 bytes

install ok: channel://pear.php.net/Mail_Mime-1.10.2

[root@localhost ~]# yum -y lrzsz

Loaded plugins: fastestmirror

No such command: lrzsz. Please use /usr/bin/yum --help

[root@localhost ~]# yum -y install lrzsz

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* epel: mirrors.ustc.edu.cn

* extras: mirrors.aliyun.com

* updates: centosc6.centos.org

Resolving Dependencies

--> Running transaction check

---> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed

--> Finished Dependency Resolution

Complete!

[root@localhost ~]# rz

rz waiting to receive.

Starting zmodem transfer.  Press Ctrl+C to cancel.

Transferring adodb519.tar.gz...

100%     556 KB     556 KB/sec    00:00:01       0 Errors

[root@localhost ~]# rz

rz waiting to receive.

Starting zmodem transfer.  Press Ctrl+C to cancel.

Transferring base-1.4.5.tar.gz...

100%     936 KB     936 KB/sec    00:00:01       0 Errors

[root@localhost ~]# tar zxvf adodb519.tar.gz -C /var/www/html

adodb5/

adodb5/xmlschema.dtd

adodb5/datadict/

adodb5/adodb-iterator.inc.php

adodb5/adodb-xmlschema03.inc.php

[root@localhost ~]# mv /var/www/html/adodb5 /var/www/html/adodb

[root@localhost ~]# tar zxvf base-1.4.5.tar.gz -C /var/www/html

base-1.4.5/

base-1.4.5/admin/

base-1.4.5/admin/base_roleadmin.php

base-1.4.5/admin/base_useradmin.php

base-1.4.5/styles/base_style.css

base-1.4.5/world_map6.png

base-1.4.5/world_map6.txt

[root@localhost ~]# mv /var/www/html/base-1.4.5 /var/www/html/base

[root@localhost ~]# vi /etc/php.ini

error_reporting = E_ALL & ~E_NOTICE

[root@localhost ~]#  systemctl start mysqld

[root@localhost ~]# mysql -uroot -p

>create database snort;

>grant create,select,update,insert,delete on snort.* to snort@localhost identified by '123456';

>exit

[root@localhost ~]# mysql -usnort -p -Dsnort < /root/barnyard2-1.9/schemas/create_mysql

[root@localhost ~]#  systemctl start  httpd

[root@localhost ~]# service iptables stop

Redirecting to /bin/systemctl stop  iptables.service

Failed to stop iptables.service: Unit iptables.service not loaded.

[root@localhost ~]#  systemctl stop firewalld

[root@localhost ~]#