程序开发人员,不拘泥于语言与技术,目前主要从事PHP和前端开发,使用Laravel和VueJs,App端使用Apicloud混合式开发。合适和够用是最完美的追求。前端
我的网站:http://www.linganmin.cnlinux
最近刚写了一个手机在线播放的H5电影站:http://www.ifilm.ltdvim
sudo vim /etc/ssh/sshd_config
修改PermitRootLogin
的值为yes
centos
安装centos7选择基本安装,配置完网络后首先要先关闭firewall:
中止firewall网络
systemctl stop firewalld.servicessh
禁止firewall开机启动tcp
systemctl disable firewalld.service网站
安装iptables防火墙
yum方式安装iptablescentos7
yum install iptables-servicesrest
编辑防火墙配置文件
vi /etc/sysconfig/iptables
`
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT
`
最后重启防火墙使配置生效
systemctl restart iptables.service
设置防火墙开机启动
systemctl enable iptables.service
闭SELINUX
编辑selinux的配置文件
vi /etc/selinux/config
#注释掉下面两行 #SELINUX=enforcing #SELINUXTYPE=targeted #增长一行 SELINUX=disabled
保存,关闭
ESC
:wq
重启系统
shutdown -r now