我正在尝试弄清楚使用Wget安装的正确流程,在这个例子中,我将使用Nginx。
# Download nginx to /tmp/ directory
wget http://nginx.org/download/nginx-1.3.6.tar.gz -r -P /tmp
# Extract nginx into /tmp/nginx directory
tar xzf nginx-1.3.6.tar.gz -C /tmp/nginx
# Configure it to be installed in opt
./configure --prefix=/opt/nginx
# Make it
make
# Make install
make install
# Clean up temp folder
rm -r /tmp/*
这是理想化的流程吗?我是否有所改进的余地?
/opt/nginx/nginx
,并将前缀设置为/opt/nginx
。 - zero2cx