sudoapachectlstart
sudoapachectlstop
sudoapachectlrestart
httpd-v
mbp:~eyon$httpd-v
Serverversion:Apache/2.2.22(Unix)
Serverbuilt:Jun20201213:57:09
/Library/WebServer/Documents/
http://localhost
~/Sites
sudomkdir~/Sites
/etc/apache2/users/
sudovi/etc/apache2/users/你的用户名.conf
<Directory"/Users/username/Sites/">
OptionsIndexesMultiViews
AllowOverrideAll
Orderallow,deny
Allowfromall
</Directory>
sudochmod755/etc/apache2/users/你的用户名.conf
sudoapachectlrestart
http://localhost/~username/
sudonano/etc/apache2/httpd.conf
sudoapachectlrestart
<?phpphpinfo();?>
sudo/usr/local/mysql/support-files/mysql.serverstart
/usr/local/mysql/bin/mysql-v
cd;vi.bash_profile
exportPATH="/usr/local/mysql/bin:$PATH"
source~/.bash_profile
mysqladmin-urootpassword这里填你要设置的暗码
sudomkdir/var/mysql
sudoln-s/tmp/mysql.sock/var/mysql/mysql.sock
mkdir~/Sites/phpmyadmin/config
chmodo+w~/Sites/phpmyadmin/config
http://localhost/~username/phpmyadmin/setup/
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |