Build an SNORT intrusion detection system in Linux

Source: Internet
Author: User
Article Title: Build an SNORT intrusion detection system in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories 1. install apache
 
Tar zxvf apache-(Version) -- decompress apache
 
Enter the extract directory.
 
/Configure -- prefix =/usr/local/apache -- enable-so -- enable-rewrite
 
Make
 
Make install
 
/Usr/local/apache/bin/apachectl start APACHE
 
Http://XXX.XXX.XXX.XXX (Server IP address) test APACHE
 
2. Install mysql
 
Groupadd mysql
 
Useradd-g mysql
 
Tar zxvf mysql-(Version) -- decompress mysql
 
Enter the extract directory.
 
/Configure -- prefix =/usr/local/mysql -- with-charset = gb2312/gbk
 
Make
 
Make install
 
Enter the supportsfiles directory
 
Cp my_medium.cnf/etc/my. cnf
 
/Usr/local/mysql/bin/mysql_install_db -- user = mysql
 
Chown-R root/usr/local/mysql
 
Chown-R mysql/usr/local/mysql/var
 
Chgrp-R mysql/usr/local/mysql
 
/Usr/local/mysql/share/mysql/bin/mysql. server start MYSQL
 
/Usr/local/mysql/bin/mysqladmin-u root password XXXX
 
/Usr/local/mysql/bin/mysql-u root-p
 
Password:
 
Mysql>
 
3. install PHP
 
Tar zxvf php-(Version)
 
Enter the extract directory
 
  
     
      
. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache/bin/apxs \ -- with-mysql =/usr/local/mysql \ -- with-config_file_path = /usr/local/php \ makemake installcp php. ini_dist/usr/local/lib/php. inivi/usr/local/lib/php. ini changes row 365 off to onvi/usr/local/apache/conf/httpd. confDireltoryIndex is followed by index. phpAddType applicontion/X-httpd-php. phpvi/usr/local/apache/htdocs/test/phpphpinfo ()?>
     


 
Restart APACHE
 
Http://XXX.XXX.XXX.XXX/test.php
 
4. Install pcre
 
Tar zxvf pcre-(Version)
 
Enter the extract directory
 
. /Configure
 
Make
 
Make install

[1] [2] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.