《添加www组教程.docx》由会员分享,可在线阅读,更多相关《添加www组教程.docx(2页珍藏版)》请在优知文库上搜索。
1、添加WWW组教程一、添加命令添加用户组groupaddWwW添加用户usermod-gWWWWWW二、对相关目录设置WWW组教程chownWWw:WWW-R目录三、查看apache的配置文件optlamppetc乂件恒HAUJ亘有楮UUEJPHPIniDir$APACHEJIR/bin”1.oadModulephp7_module$INSTA1.1.-DIR/bin/phpphp7.2.18/php7apache2_4.dll”# Ifyouwishhttpdtorunasadifferentuserorgroup,youmustrun# httpdasrootinitiallyanditwi
2、llswitch./# User/Group:Thename(orMumber)oftheuser/grouptorunhttpdas.# Itisusuallygoodpracticetocreateadedicateduserandgroupfor#runninghttpd,aswithmostsystemservices.JserWWroupWWWl#,MainserverconfigurationThedirectivesinthissectionsetupthevaluesusedbythemainserver,whichrespondstoanyrequeststhataren,t
3、handledbyadefinition.Thesevaluesalsoprovidedefaultsforanycontainersyoumaydefinelaterinthefile.Allofthesedirectivesmayappearinsidecontainers,inwhichcasethesedefaultsettingswillbeoverriddenforthevirtualhostbeingdefined.四、重启环境教程1、启动、关闭、重启环境需要娘目录:cdoptlampp启动XAMPP#./Iamppstart停止XAMPP./Iamppstop三XAMPP./Iampprestart