Environment Set up
- use ssh login server
- change file mode
- upload a html to server
- preview website
use ssh login server
We use bash which support your Linux command environment and make life easy!
3 Steps as follow:
- find and open it
- command of login server
ssh jq4387@csweb01.csueastbay.edu
e.g.
image.png
change file mode
[jq4387@csweb01 ~]$ chmod 755 public_html
upload a html to server
make a local directory public_html
jump to public_html
and new a file called test.html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
scp test.html jq4387@csweb01.csueastbay.edu:public_html
e.g.
image.pngpreview website
http://csweb01.csueastbay.edu/~jq4387/test.html
local sever
python -m SimpleHTTPServer 8000
网友评论