centos内网服务器搭建
来源:互联网 发布:字体管家软件 编辑:程序博客网 时间:2024/05/19 04:56
centos内网服务器搭建
- centos内网服务器搭建
- 禁用自带的firewall iptables selinux等暴力简单方法
- ifconfig查看本机的局域网地址
- 路由器设置花生壳nat123等外网映射可用纯内网可省略
- 另一台计算机访问localhostXXXX成功
1. 禁用自带的firewall iptables selinux等(暴力简单方法)
也可只开放80端口,未测试
systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)chkconfig iptables off
开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent命令含义:--zone #作用域--add-port=80/tcp #添加端口,格式为:端口/通讯协议--permanent #永久生效,没有此参数重启后失效重启防火墙firewall-cmd --reload
2. ifconfig查看本机的局域网地址
windows使用ipconfig /all
linux可使用ifconfig
3. 路由器设置(花生壳,nat123等外网映射可用,纯内网可省略)
- 转发规则-> 虚拟服务器-> 添加新条目
端口为nginx,tomcat等的端口,21,20,22等端口也可
地址为服务器所在的ip,如192.168.1.101
4. 另一台计算机访问localhost:XXXX,成功
1 0
- centos内网服务器搭建
- CentOS 7 搭建ngrok服务器(外网映射内网)
- 内网搭建web服务器
- 搭建内网BT服务器
- 搭建内网yum服务器
- 内网DNS服务器搭建
- 自己搭建内网服务器
- CentOs之搭建自己的内网穿透服务器(Ngrok)-yellowcong
- CentOS搭建ngrok服务器及跨平台客户端内网穿透的使用
- RadHat搭建内网YUM源服务器
- Apache James搭建内网邮件服务器
- 内网穿透-搭建ngrok服务器
- 内网穿透-搭建ngrok服务器
- ubuntu搭建内网dns服务器
- ubuntu_内网dns服务器搭建
- CentOS DNS服务器搭建
- centos 搭建 ftp服务器
- Centos 搭建ftp服务器
- mybatis未明确定义列
- 支付宝支付接入(接入与验证)
- C#编程基础 实验(1)
- 通过一个大型项目来学习分布式算法(1)
- PAT (Advanced Level) Practise 1044 Shopping in Mars (25)
- centos内网服务器搭建
- Python3.5 使用 protobuf3.0.0.beta2
- 事务小结
- 安卓外置SD卡不能写
- 淘宝大秒系统设计详解
- 【HDU 4416 】Good Article Good sentence 后缀数组
- 如何优化Mysql执行查询数据的速度
- 欢迎使用CSDN-markdown编辑器
- 输入整数序列,最小的和第一个数对换,最大的和最后一个数对换