三易城
CentOS 7 查看端口占用进程
2018-11-22 18:25    /    个人笔记
如:查看5000端口占用进程
ss -lnp|grep 5000
CentOS 7 使用hugo创建静态网站
2018-11-22 18:25    /    个人笔记
简单记录个人使用hugo创建静态网站步骤,作为备忘录。
1.安装 git
yum install git -y
2.安装hugo
cd /etc/yum.repos.d/
curl -O https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/repo/epel-7/daftaupe-hugo-epel-7.repo
yum install hugo
3.创建网站
hugo new site kuailaiyong
4.添加theme
cd kuailaiyong/theme
git clone https://github.com/Lednerb/bilberry-hugo-theme.git
echo 'theme = "bilberry-hugo-theme"' >> config.toml
5.发布
hugo
CentOS 7 安装 nginx
2018-11-22 13:45    /    个人笔记
简单记录安装nginx步骤,作为备忘录。
1.添加nginx Repository
yum install epel-release
2.安装nginx
yum install nginx
3.启动Nginx服务:
systemctl start nginx
4.添加防火墙端口:
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
5.访问IP地址:
http://IP/
如果能看到页面则说明nginx运作正常
6.设置开机自动启动nginx
systemctl enable nginx
7.修改配置文件后从新加载
nginx -s reload
© cityeee.com 2019    |    粤ICP备17139749号-2    |     粤公网安备 44010602005890号