전체 글(22)
-
[CentOS] rinetd
# yum -y install gcc# wget http://www.boutell.com/rinetd/http/rinetd.tar.gz# tar zxvf rinetd.tar.gz# cd rinetd# make# mv rinetd /usr/sbin/# chcon -u system_u -t bin_t /usr/sbin/rinetd# vi /etc/rinetd.conf>내용시작--------------------------------------내용종료--------------------------------------내용시작---------------------------------------내용종료---------------------------------------내용시작-------------------..
2014.10.29 -
[CentOS] Sendmail
# yum -y install sendmail sendmail-cf# vi /etc/mail/sendmail.cf>---------------------------------------
2014.10.29 -
[CentOS] MySQL
? http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm # rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm# yum -y install mysql-server# chkconfig mysqld on# vi /etc/my.cnf>------------------------------------------------------------------------------ GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.0.11' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVIL..
2014.09.30 -
[CentOS] vsftpd
# yum install -y openssh-clients# which scp# yum install -y ftp # yum install -y pam_mysql# yum install -y vsftpd# chkconfig vsftpd on# mysql -u root -p> CREATE DATABASE vsftpd;> GRANT SELECT ON vsftpd.* TO 'vsftpd'@'localhost' IDENIFIED BY 'password..';> FLUSH PRIVILEGES;> USE vsftpd;> CREATE TABLE `accounts` (`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,`username` VARCHAR(30) NOT NULL,`pass` V..
2014.09.24 -
[CentOS] Web
#-- 시간동기화# yum -y install ntp# vi /etc/ntp.conf>----------------------------------------------------------------------------------------------- All DirectoryIndex index.html index.htm index.phpKeepAlive OffMaxKeepAliveRequests 1024KeepAliveTimeout 10 StartServers 4MaxClients 512MinSpareThreads 32MaxSpareThreads 64 ThreadsPerChild 32MaxRequestsPerChild 0 SetEnvIfNoCase Request_URI "\.(jpe?g|gif|b..
2014.09.05 -
[CentOS] Samba
# yum -y install samba# chkconfig smb on# vi /etc/samba/smb.conf>------------------------------------------------------------------------------------------------------------------------------------------------------------
2014.09.03 -
[CentOS] NFS
# yum -y install nfs-utils# chkconfig rpcbind on# chkconfig nfs on# vi /etc/sysconfig/nfs>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2014.09.03 -
[CentOS] RAID
# yum -y install mdadm# fdisk /dev/sdb> n> p> 1> [엔터]> [엔터]> w # mknod /dev/md127 b 9 1# mdadm --create /dev/md127 --level=1 --raid-device=2 /dev/sdb1 /dev/sdc1# mkfs.ext4 /dev/md127 상태확인# df -h# fdisk -l# ls -l /dev/sd*# ls -l /dev/md*# mdadm --query --detail /dev/md127 복구# mdadm /dev/md127 --add /dev/sdd1 제거# mdadm --remove /dev/md127 /dev/sdb1 # fdisk -l# fdisk /dev/xvdb> n> p> 1> [엔터]> [엔터]>..
2014.08.25 -
[CentOS] Network Bond
# yum -y install ethtool# vi /etc/sysconfig/network-scripts/ifcfg-bond0>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------..
2014.08.04 -
[CentOS] fail2ban
# yum -y install epel-release # yum -y install fail2ban# chkconfig fail2ban on# vi /etc/fail2ban/jail.conf>------------------------------------------------------------------------------
2014.08.04