加入 nginx repo
1 2 3 4 5 6 7 8
| # http://nginx.org/en/linux_packages.html vim /etc/yum.repos.d/nginx.repo
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
|
準備 nodejs 來源
1 2
| # https://nodejs.org/en/download/package-manager/ curl -sL https://rpm.nodesource.com/setup_4.x | bash -
|
安裝習慣使用的工具
1 2 3 4 5
| yum install epel-release yum update
yum install htop vim net-tools nginx python-pip nodejs goaccess git pip install ngxtop
|
設定時區
1
| timedatectl set-timezone Asia/Taipei
|
selinux 相關筆記
1 2 3 4 5 6 7 8
| # SELINUX=enforcing => SELINUX=diabled vim /etc/selinux/config
# fix nginx upstream error setsebool -P httpd_can_network_connect 1
# selinux reset ? restorecon -r /path/to/
|