我最近购买了一台Raspberry Pi 3,并安装了Ubuntu Mate,目的是设置一个web服务器。我安装了..。Apache/2.4.18 MySQL版本14.14 Distrib 5.7.21 PHP 7.0.28
这是我的标题。
`<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="shortcut icon" href="assets/images/clc-338x64.jpg" type="image/x-icon">
<meta name="description" content="">
<title>Home</title>
<link rel="stylesheet" href="assets/web/assets/mobirise-icons/mobirise-icons.css" type="text/css">
<link rel="stylesheet" href="assets/tether/tether.min.css" type="text/css">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap-grid.min.css" type="text/css">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap-reboot.min.css" type="text/css">
<link rel="stylesheet" href="assets/socicon/css/styles.css" type="text/css">
<link rel="stylesheet" href="assets/dropdown/css/style.css" type="text/css">
<link rel="stylesheet" href="assets/theme/css/style.css" type="text/css">
<link rel="stylesheet" href="assets/mobirise/css/mbr-additional.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script" rel="stylesheet">
</head>`当我直接导航到html文件时
file:///var/www/html/index.html
我看到这个网站很好。--> Fully Functional Site Image
但是当我尝试使用Pi的IP地址查看站点时
10.0.0.185
我得到了这个--> Missing CSS Image
是什么阻止了所有css的加载?
发布于 2018-04-02 08:17:32
我不小心把它修好了。我弄乱了我对网站目录的权限,把它从" root“改成了”root“,然后我被吓坏了,因为root不再是找回它的选项了……然后,我使用了以下命令。
sudo chown -R www-data:www-data /var/www
现在,当我使用ip地址时,我的网站显示为预期的效果!
https://stackoverflow.com/questions/49600557
复制相似问题