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