아파치 설치, mysql 설치, 기본 필요 세팅
# yum install httpd
# /etc/init.d/httpd start
# chkconfig httpd on
# yum install mysql mysql-server
# /etc/init.d/mysqld start
# chkconfig mysqld on
# mysql –u root –p
> SET PASSWORD = PASSWORD(‘rootpassword’)
# yum install php php-mysql php-gd
# vim /var/www/html/test.php
<?php
phpinfo();
?>
# /etc/init.d/httpd restart
# wget http://rpms.adiscon.com/v8-stable/rsyslog.repo
# mv rsyslog.repo /etc/yum.repos.d/rsyslog.repo
# yum install rsyslog* --skip-broken
# chkconfig rsyslog on
# vim /usr/share/doc/rsyslog-mysql-8.2.1/createDB.sql
CREATE DATABASE rsyslogdb;
USE rsyslogdb;
CREATE TABLE SystemEvents
[...]
# mysql -u root -p < /usr/share/doc/rsyslog-mysql-8.2.1/createDB.sql
# mysql –u root –p rsyslogdb
> GRANT ALL ON rsyslogdb.* TO rsyslogdbadmin@localhost IDENTIFIED BY 'NewPasswordHere';
> FLUSH PRIVILEGES;
> exit
# mysql -u rsyslogdbadmin -p rsyslogdb
'Infra > Linux' 카테고리의 다른 글
How to " Centos7 yum install pip " (0) | 2019.05.08 |
---|---|
로그인 시 출력되는 문구 설정 - /etc/motd (0) | 2019.04.30 |
linux find command size 기준으로 출력 및 응용,복합 예시 (0) | 2019.04.24 |
Centos 6 user last connection history 유저/계정 접속 이력 확인 command (0) | 2019.04.11 |
Centos6 minimal base setting sample & Datanode setting (0) | 2019.03.18 |