apache2的默认html修改

使用127.0.0.1的时候,默认打开的是index.html,可以通过配置文件修改成我们想要的html

vi /etc/apache2/mods-enabled/dir.conf


        DirectoryIndex WS.html index.html index.cgi index.pl index.php index.xhtml index.htm


# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


如上是修改为了WS.html

开机自启动火狐浏览器,打开127.0.0.1,延迟启动(等待设备启动,10s),步骤如下(建议使用desktop文件)
sudo vi /etc/xdg/autostart/firefox-localhost.desktop

[Desktop Entry]
Type=Application
Name=Firefox Localhost
Exec=bash -c "sleep 10 && firefox --new-window 127.0.0.1"
StartupNotify=false
X-GNOME-Autostart-enabled=true

或者  sudo vi /etc/rc.local,在exit 0之前添加

sleep 30
su - [你的用户名] -c "export DISPLAY=:0 && firefox --new-window 127.0.0.1" &

你可能感兴趣的:(服务器,linux,运维)