🚙

💨 💨 💨

×

  • Categories

  • Archives

  • Tags

  • About

从零开始搭建一台简易Ubuntu服务器二

Posted on 08-25-2013 | In Linux

安装nginx

如若有有不明白,还可以前往参考

执行命令安装nginx:sudo apt-get install nginx
测试是否安装成功:在本机的浏览器里访问 localhost ;如果现实”Welcome to nginx!”,表明你的 Nginx 服务器安装成功!
启动 Nginx:sudo /etc/init.d/nginx start
关闭 Nginx:sudo /etc/init.d/nginx stop
重启 nginx:sudo /etc/init.d/nginx restart 或者 sudo service nginx restart
sudo service apache2 stop (如果之前装了apache2则需要sudo apt-get remove apache2 卸载掉apache2然后执行这个stop命令)

. . .

从零开始搭建一台简易Ubuntu服务器一

Posted on 08-23-2013 | In Linux

创建dev用户

sudo adduser dev

增加dev权限

sudo visudo 添加:dev ALL=(ALL:ALL) ALL

. . .

1…2728293031323334353637
Mike

Mike

🚙 🚗 💨 💨 If you want to create a blog like this, just follow my open-source project, "hexo-theme-neo", click the GitHub button below and check it out ^_^ . It is recommended to use Chrome, Safari, or Edge to read this blog since this blog was developed on Edge (Chromium kernel version) and tested on Safari.

11 categories
290 posts
111 tags
about
GitHub Spotify
© 2013 - 2025 Mike