Linux配置防火墙 开启80端口 编辑配置文件/etc/sysconfig/iptables [root@weixinht ~]# vim /etc/sysconfig/iptables 1 # Firewall configuration written by system-config-firewall 2 # Manual customization of this file is not recommended. 3 *filter 4 :INPUT ACCEPT [0:0] 5 :F…
centos将nginx服务设置为开机自动启动 1.在/etc/init.d下创建文件nginx 发现原来就有并且配置就是默认的,而且是正确的 命令为: vim /etc/init.d/nginx 需要注意的配置: nginx="/usr/sbin/nginx" //修改成nginx执行程序的路径. NGINX_CONF_FILE="/etc/nginx/nginx.conf" 保存后设置文件的执行权限 2.修改配置问题件 chmod a+x /etc/init.d…
1.准备安装程序 pcrl-8.43.tar.gz  zlib-1.2.11.tar.gz  openssl-1.0.1j.tar.gznginx-1.9.9.tar.gz 2.将下载的包拷贝到/usr/local $ cd /usr/local 3.安装pcrl $ tar -zxvf pcrl-8.43.tar.gz $ cd pcrl-8.43 $ ./configure $ make $ make install 4.安装zlib $ .tar.gz $ cd zlib- $ ./con…
/* 1.先解决上网 1-1.参照联网状态文件 # cd /etc/sysconfig/network-scripts # vi ifcfg-eth0 1-2.编辑联网状态文件 详见图1-2 1-3.重启网络 # service network restart | /etc/init.d/network restart 2.安装常用 2-1.下载工具wget # yum install wget 2-2.浏览器w3m # yum install w3m 3.Nginx 3-1.安装依赖: gcc…
安装nginx服务 sudo yum install nginx 启动nginx systemctl start nginx 加入启动项 systemctl enable nginx 测试nginx服务 sudo curl http://localhost 配置防火墙 firewall-cmd --zone=public --add-port=80/tcp --permanent 重启防火墙生效 systemctl restart firewalld 使用ip外部访问…
一.nginx搭建好后无法访问后端Tomcat项目 通过项目名称过滤的方式访问Tomcat,比如项目名称叫easy. 修改其server下的location目录,配置如下: server { #监听的端口 listen *:80 default; #访问的服务器(localhost可以使用你自己的IP地址) server_name localhost; #前端代码存放目录 root /usr/local/nginx/html; index index.html index.htm; #过滤条件就…
自己搞了个服务器 (我的服务器网络类型是 专有网络)如下图点击 配置规则 进入到 进.出端口规则配置 点击添加安全组规则 如图所配置  添加完成后 就如下面所示 (配置完成后 通过ip就已经可以访问了) …
在使用centos7安装完mysql.tomcat.nginx后,都需要配置防火墙才能正常访问. 下面系统的学习一下防火墙的配置. centos7默认使用firewall,需要关闭,然后使用iptable 一.关闭firewall systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 firewall-cmd --state #查看默认防火墙状态(关闭后显示…
首先 先做的就是 修改ssh的默认端口22 需要修改文件 /etc/ssh/sshd_config 使用命令 vi /etc/ssh/sshd_config [root@localhost ~]# vi /etc/ssh/sshd_config # $OpenBSD: sshd_config,v 1.90 2013/05/16 04:09:14 dtucker Exp $ # This is the sshd server system-wide configuration file. See…
网址不要输入localhost,而是输入docker quickstart terminal登陆成功后给你的ip地址.…