とりあえず公開.
そのうち分割する.
まずは,パスワードの設定とアップデート
$sudo passwd $sudo passwd centos $su - #yum -y update普段使うもののインストール
#yum -y install git vim-enhanced zsh screen #yum -y groupinstall "Development Tools"SELinuxを無効にする
#vim /etc/selinux/config -SELINUX=enforcing +SELINUX=disabledapacheのインストールと自動起動設定
CentOS7からchkconfigからsystemctlに変わった.#yum -y install httpd httpd-devel #systemctl enable httpd #systemctl start httpdリポジトリの追加
#yum -y install wget #wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm #rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm #yum install -y epel-release #rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpmphpのインストール
#yum -y install php-devel php-mcrypt php-mbstring php-mysql php-pdo php-fpmphpのタイムゾーンの設定
#vim /etc/php.ini -;date.timezone = +date.timezone = Asia/Tokyophp-eacceleratorのインストール
#cd /usr/local/src #git clone https://github.com/eaccelerator/eaccelerator.git #cd eaccelerator #phpize #./config #make #make test #make install設定ファイル
#vim /etc/php.d/eaccelerator.ini +[eaccelerator] +extension="eaccelerator.so" +eaccelerator.shm_size = "0" +eaccelerator.cache_dir = "/var/cache/php-eaccelerator" +eaccelerator.enable = "1" +eaccelerator.optimizer = "1" +eaccelerator.debug = 0 +eaccelerator.log_file = "/var/log/httpd/eaccelerator_log" +eaccelerator.name_space = "" +eaccelerator.check_mtime = "1" +eaccelerator.filter = "" +eaccelerator.shm_ttl = "0" +eaccelerator.shm_prune_period = "0" +eaccelerator.shm_only = "0" +eaccelerator.allowed_admin_path = "/var/www/" #mkdir -p /var/cache/php-eaccelerator #chmod 777 /var/cache/php-eacceleratorphp-memcachedのインストール
#yum -y install php-memcached memcached #systemctl enable memcached #systemctl start memcached #vim /etc/php-fpm.d/www.conf -php_value[session.save_handler] = files -php_value[session.save_path] = /var/lib/php/session +php_value[session.save_handler] = memcached +php_value[session.save_path] = "localhost:11211" #systemctl enable memcached #systemctl start memcachedphp-fpmのインストール
#yum -y install php-devel php-fpm #systemctl enable php-fpm #systemctl start php-fpmmysqlのインストール
最近はmariadbが代わり#yum -y install mariadb mariadb-server設定ファイル
#vim /etc/my.cnf [mysqld] +character-set-server=utf-8 +[mysql] +default-character-set=utf-8 +[mysqldump] +default-character-set=utf-8有効化と自動起動設定
#systemctl enable mariadb #systemctl start mariadbパスワードなどの設定スクリプトの実行
表示に従ったらた大丈夫.#mysql_secure_installation
最近のコメント