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

vsftp

[root@mami sekigawa]# vi /etc/vsftpd/chroot_list
 sekigawa

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS