
1、首先,连接相应linux主机,进入到linux命令行状态下,等待输入shell指令。
2、其次,在linux命令行中输入:curl https://www.baidu.com。
3、最后,按下回车键执行shell指令,此时会看到网页被成功打开获取到了源代码。
Linux系统下web服务器大多数都是Apache搭建的环境,下面是Apache环境web设置默认页面方法:1、设置全局的web目录默认首页:<pre t="code" l="php"><IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index index index.shtml index.phtml default.php
</IfModule>2、针对某一web目录设置默认首页:
<pre t="code" l="php">Alias /aidd2008 "D:/php/web/aidd2008"
<Directory "D:/php/web/aidd2008">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex default.php
</Directory>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)