【centos7添加firewalld规则】教程文章相关的互联网学习教程文章

CentOS7.2 切换成iptables规则【代码】

关闭firewallservice firewalld stop systemctl disable firewalld.service #禁止firewall开机启动安装iptables规则:yum install iptables-services #安装打开/etc/sysconfig/iptables配置文件默认:# sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to thisdefault configuration *filter :INPUT ACCEPT [0:0...

Win7+Centos7双系统安装/树莓派安装Centos7【代码】【图】

1 win7+Centos7.5安装(1)下载映像在已有win7的基础上安装centos7.5,首先下载centos光盘映像,可从官网下载http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso或百度网盘下载链接:https://pan.baidu.com/s/19sfqal_r4FEzupRvugufog 提取码:fbq4(2)写入映像一个8g及以上的u盘,以及USBwriter软件。将下载的iso镜像写入优盘。U盘数据提取备份,这里会被格式化。写入镜像比较简单,设置好源文件...

centos7添加firewalld规则【代码】

#允许192.168.142.166访问5432端口 [root@henry ~]# firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.142.166" port protocol="tcp" port="5432" accept" --permanent #允许所有IP访问80端口 --permanent 表示永久生效,不加重启就会失效 [root@henry ~]# firewall-cmd --zone=public --add-port=80/tcp --permanent #删除某条规则 [root@henry ~]# firewall-cmd --permanent --remove-ri...

centos7 安装ifconfig

mark ifconfig命令在net-tools.x86_64包里。直接安装即可。yum -y install net-tools.x86_64本文出自 “狐狈筱筱生” 博客,请务必保留此出处http://yuqian2203.blog.51cto.com/2828302/1946040原文:http://yuqian2203.blog.51cto.com/2828302/1946040

centos7 安装 tomcat【图】

1.先上传tomcat 到指定目录2.解压tar -zxvf apache-tomcat-9.0.30.tar.gz3.重新命名 mv apache-tomcat-9.0.30 tomcat-frontend4.移动 tomcat-frontend 到 /usr/local/ mv tomcat-frontend/ /usr/local/ 查看tomcat 文件夹 进入bin 文件 启动tomcat ./startup.sh 安装tomcat,启动正常,但是浏览器访问不了tomcat查看这个博客解决的:https://www.jianshu.com/p/502de1600b23 原文:https://www.cnblogs.com/guangzhou11/p/1...

Centos7 编译安装mariadb-10.1.22【代码】

mariadb-10.1.22 源码编译安装下载文件https://mariadb.com/1.安装开发环境yum groupinstall "Development Tools"安装需要包:yum install -y ncurses-devel openssl-devel openssl2.安装cmaketar -xf cmake-3.8.0.tar.gz cd cmake-3.8.0 ./bootstrap make make install3.安装前准备3.1.准备目录mkdir -pv /data/mysql/3306/{data,logs/{binlog,relaylog}}3.2.添加用户useradd -s /sbin/nologin -g mysql -M mysql chown mysql:mys...

centos7修改主机名【代码】

临时修改: hostname centos7永久修改:# hostnamectl set-hostname cen07 原文:http://www.cnblogs.com/bass6/p/6194726.html

centos7搭建postfix邮件服务器【代码】【图】

在使用qq等邮件服务器厂商提供的邮件服务后,发现他们的邮件发送数量是有限制的,随着公司的业务的需求下,我们需要搭建一个邮件服务器,邮件服务器可以帮助我们在一些提醒方面和消息推送方面起到帮助。理论性语句:邮件系统的简单介绍:电子邮件系统基于邮件协议来完成电子邮件的传输,常见的邮件协议有下面这些。简单邮件传输协议(Simple Mail Transfer Protocol,SMTP):用于发送和中转发出的电子邮件,占用服务器的25/TCP端口...

Centos7最小化安装报错Loading mirror speeds from cached hostfile【图】

Centos7最小化安装报错There are no enabled repos. Run "yum repolist all" to see the repos you have.解决办法 原因是缺少CentOS-Base.repo文件,因为我这台机器wget也不能用,所以我是下载到本地sftp上去的,传输的时候一定要在root用户下,否则会无法启动传输这是报错的完整信息: Loading mirror speeds from cached hostfile There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red...

1.CentOS7下更换yum为阿里下载源【代码】

1.备份原镜像文件cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2.下载新的CentOS源wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo*若系统是最小化安装时会提示没有wget需安装wget yum -y install wget 3.生成缓存yum makecache原文:https://www.cnblogs.com/dukun166/p/12094805.html

centos7开放端口和防火墙设置【代码】

centos7开放端口和防火墙设置。查看防火墙状态:firewall-cmd --state如果显示:not running打开防火墙服务:systemctl start firewalld.service永久开放 tcp 协议下的 10000 端口:firewall-cmd --zone=public --add-port=10000/tcp --permanent重启防火墙:systemctl restart firewalld.service重新加载防火墙:firewall-cmd --reload查看当前开放的端口和协议:firewall-cmd --zone=public --list-ports显示为:10000/tcp启动端...

CentOS7.3yum安装MariaDB报错[Errno 256]【代码】

在yum安装MariaDB时出现下面这个错误提示,然后着手排查,先检查了/etc/yum.repo.d/下的配置文件,没有错误。failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try. http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: yum.mariadb.org; 未知的错误"我这个是云主机,刚想安装LNMP环境。我清理了yum缓存,重新生成缓存,结果也还没解决,还...

CentOS7 安装samba

samba是个文件共享服务器。在linux和windows之间很好用,当然有更好的是NFS。这里对自己在CentOS7上安装samba的过程做一个记录。因为发现网上的都很乱,自己踩过坑以后,记录下,以便以后不再踩了。当然,你也可以去看《鸟哥的linux私房菜-服务器搭建篇》,上面都介绍的很好。1、关闭防火墙。 CentOS 7 是自带的firewall,CentOS 6 好像是iptables。关闭防火墙命令如下: 第一种方法是关闭防火墙: systemctl disabl...

阿里云Centos7 搭建laravel【代码】【图】

最近在考虑学习laravel框架,唔 现在服务器搭建一下。laravel是依赖composer的,首先在linux服务器下先安装composer。运行composer需要 php 5.3以上版本, 并且确定开启了PHP CURL 扩展第一步,咱先安装composer$ curl -sS https://getcomposer.org/installer | phpcomposer.json 声明PHP依赖的第三方扩展的文件,将composer设为全局 后面可以直接composer install 来安装包$ sudomv composer.phar /usr/local/bin/composer在命令行...

ThinkCenter安装CentOS7【图】

重启电脑按F12选择从光盘启动;选择install CentOS7,并按“E”键进行编辑 编辑后,并按Ctrl+X 查看并找到你需要的盘符名称,如:sr0;随后强制重启电脑。并修改如下: 按Ctrl+X,进行安装 原文:https://www.cnblogs.com/jeshy/p/10518689.html