小编Zha*_*eng的帖子

如何通过不同的端口(80以外)启动nginx

嗨我是nginx上的新手,我试图在我的服务器上运行它(运行Ubuntu 4),它已经运行了apache.

所以在我apt-get install之后,我尝试启动nginx.然后我收到这样的消息:

Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
Run Code Online (Sandbox Code Playgroud)

这是有意义的,因为Apache正在使用端口80.

然后我试着修改nginx.conf,我引用了一些文章,所以我改变了它:

   server {

        listen       8080;

        location …
Run Code Online (Sandbox Code Playgroud)

ubuntu nginx

120
推荐指数
3
解决办法
26万
查看次数

如何使用https?

如果在服务器上,我们已经设置/配置了SSL证书,我怎样才能使用安全页面制作我的网站?只需将链接转至https://example.com/etc.php即可.

谢谢!

ssl https

7
推荐指数
1
解决办法
7837
查看次数

标签 统计

https ×1

nginx ×1

ssl ×1

ubuntu ×1