我已经安装nginx使用apt
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:nginx/stable
sudo apt-get install software-properties-common
sudo apt-get update
sudo apt-get install nginx
Run Code Online (Sandbox Code Playgroud)
然后我使用whereis nginx并手动删除了所有文件,rm 现在我想重新安装nginx但它不起作用并返回错误:
awk: cannot open /etc/nginx/nginx.conf (No such file or directory)
Run Code Online (Sandbox Code Playgroud)
我创建/etc/nginx/nginx.conf 然后使用apt-get install nginx它安装完全不起作用。
的输出sudo dpkg -l | grep nginx:
ii nginx 1.4.3-1~raring0 all small, powerful, scalable web/proxy server
ii nginx-common 1.4.3-1~raring0 all small, powerful, scalable web/proxy server - common files
ii nginx-full 1.4.3-1~raring0 i386 nginx …Run Code Online (Sandbox Code Playgroud) nginx ×1