centos7配置

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(运行安装)

服务进程管理:phptool (start/stop/restart/uninstall)

站点主机管理:phptool (add/del/list)

ftpd用户管理:phptool ftp (add/del/list)

posted @ 2017-08-29 11:00  冉青枫  阅读(100)  评论(0)    收藏  举报