码迷,mamicode.com
首页 > 其他好文 > 详细

centos7配置

时间:2017-08-29 12:35:31      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:start   phpstudy   http   mct   firewalld   amp   wget   net   查看   

cd /

cd etc

cd sysconfig

cd network-scripts

ls

vi ifcfg-enp0s3

BOOTPROTO=static

NM_CONTROLLED=no(加上)

ONBOOT=yes

IPADDR=

GATEWAY=

NETMASK=

DNS1=

DNS2=

:wq

service network restart

ip addr

ping www.baidu.com

symtemctl stop firewalld.service(停止firewall)

systemctl disable firewalld.service(禁止firewall自启动)

firewall-cmd --state(查看防火墙运行状态)

yum -y install wget(安装wget)

wget -c http://lamp.phpstudy.net/phpstudy.bin

chmod +x phpstudy.bin(权限配置)

./phpstudy.bin(运行安装)

centos7配置

标签:start   phpstudy   http   mct   firewalld   amp   wget   net   查看   

原文地址:http://www.cnblogs.com/ranqingfeng/p/7447247.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!