[[mami]] centos 7.3 をインストール firewall を外す [root@mami sekigawa]# systemctl stop firewalld [root@mami sekigawa]# chkconfig firewalld off SELinux を無効 [root@mami sekigawa]#vi /etc/selinux/config SELINUX=disabled proxy の設定(最終行に追記・自宅ではとる) [root@mami sekigawa]# vi /etc/profile MY_PROXY_URL="http://43.25.115.2:3128/" HTTP_PROXY=$MY_PROXY_URL HTTPS_PROXY=$MY_PROXY_URL FTP_PROXY=$MY_PROXY_URL http_proxy=$MY_PROXY_URL https_proxy=$MY_PROXY_URL ftp_proxy=$MY_PROXY_URL export HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy [root@mami sekigawa]# source /etc/profile yum の proxy(最終行に追記・自宅ではとる) [root@mami sekigawa]# vi /etc/yum.conf proxy=http://43.25.115.2:3128/ yum update [root@mami sekigawa]# yum update mariadbインストール [root@mami sekigawa]# yum -y install mariadb-server [root@mami sekigawa]# vi /etc/my.cnf [mysqld] character-set-server=utf8 [root@mami sekigawa]# systemctl start mariadb.service [root@mami sekigawa]# systemctl enable mariadb.service [root@mami sekigawa]# systemctl is-enabled mariadb.service MariaDB初期設定 [root@mami sekigawa]# mysql_secure_installation NTP [root@mami sekigawa]# yum -y install ntp [root@mami sekigawa]# vi /etc/ntp.conf restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap server 202.234.233.106 server 202.234.233.109 server 210.145.255.76 [root@mami sekigawa]# systemctl start ntpd [root@mami sekigawa]# systemctl enable ntpd リポジトリ [root@mami sekigawa]# yum -y update [root@mami sekigawa]# yum -y install yum-plugin-priorities [root@mami sekigawa]# yum -y install epel-release [root@mami sekigawa]# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo [root@mami sekigawa]# yum -y install centos-release-scl-rh centos-release-scl [root@mami sekigawa]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl.repo [root@mami sekigawa]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo [root@mami sekigawa]# yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm [root@mami sekigawa]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/remi-safe.repo smb [root@mami sekigawa]# yum -y install samba samba-client [root@mami sekigawa]# mkdir /home/share [root@mami sekigawa]# chmod 777 /home/share [root@mami sekigawa]# vi /etc/samba/smb.conf [root@mami sekigawa]# mkdir /home/share/html [root@mami sekigawa]# chmod 777 /home/share/html [root@mami sekigawa]# ln -s /home/share/html/ /var/www/html vsftp [root@mami sekigawa]# vi /etc/vsftpd/vsftpd.conf [root@mami sekigawa]# vi /etc/vsftpd/user_list [root@mami sekigawa]# vi /etc/vsftpd/chroot_list sekigawa