美文网首页
ubuntu使用心得

ubuntu使用心得

作者: ozil_oo | 来源:发表于2018-08-24 09:13 被阅读0次

1.设置root密码

进入命令行sudo passwd root,然后设置即可

安装Apache

sudo apt-get install apache2

测试: 浏览器访问http://Ubuntu的IP(即http://localhost),出现It Works!网页。
查看状态: service apache2 status/start/stop/restart
Web目录:/var/www
安装目录: /etc/apache2/
全局配置: /etc/apache2/apache2.conf
监听端口: /etc/apache2/ports.conf
虚拟主机: /etc/apache2/sites-enabled/000-default.conf

ubuntu启动、重启、关闭apache服务

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop

查看进程

ps -ef | grep nginx

相关文章

网友评论

      本文标题:ubuntu使用心得

      本文链接:https://www.haomeiwen.com/subject/sgfzvftx.html