Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

记一次oneinstack配置服务器 #15

Open
MLuminary opened this issue Jul 31, 2018 · 0 comments
Open

记一次oneinstack配置服务器 #15

MLuminary opened this issue Jul 31, 2018 · 0 comments

Comments

@MLuminary
Copy link
Owner

MLuminary commented Jul 31, 2018

记一次 oneinstack 配置服务器

引言

自己的服务器因为换过好多次,每次搭建又格外费时,在网上闲逛时发现了 oneinstack 这个超好用的工具 ,可以傻瓜式「一键」安装。

node 安装

oneinstack 不支持 node 环境的安装,在这里

yum install -y nodejs

配置防火墙

如果此时你输入公网 ip, 发现无法访问页面, 那可能是端口未开启。 CentOS 7.0 中已经用 firewalld 取代 iptables,下面能使用 firewalld 启动防火墙

systemctl start firewalld.service

输入以上命令,报了一个错误 「 Failed to start firewalld.service: Unit firewalld.service is masked.」,执行下面的命令的命令后再启动防火墙

systemctl unmask firewalld.service

然后把 80 端口和 443 端口添加到防火墙的开放端口中

firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp

然后重启一遍防火墙后生效

systemctl restart firewalld.service

配置安全组

https://oneinstack.com/docs/securitygroup/#11

配置完后安全组记得添加实例,或者在实例中直接配置安全组

最后

然后访问实例的公网 ip, 就可以看到 oneinstack 的首页

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant