# wsl install apache2 ### 1.下載apache 2 https://ubuntu.com/tutorials/install-and-configure-apache#4-setting-up-the-virtualhost-configuration-file 基本上就看這篇,照著指令做,沒啥問題 ### 2.start server sudo service apache2 restart (如果要stop:) sudo service apache2 stop ### 3.寫檔案 一開始進去會有權限問題,我就直接把所有都開到最大就對了 cd /var/www/ sudo chmod 777 html cd html sudo chmod 777 index.html code . (開啟vscode 就可以開始編輯了)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up