【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
linux install nginx
problem 1:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
do with:
解决方法:下载安装pcre-8.12解决问题,解压后对pcre进行如下操作
Java代码 ./configure make sudo make install
problem 2:
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
do with:
缺少zlib库
解决方法:直接下载一个libssl-dev安装,这个包应该也可以解决openssl的问题.
启动nginx到时候遇到了问题,
提示:error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
解决方法,在/lib中创建一个symbol link到/usr/local/lib/libpcre.so.0.1
sudo ln /usr/local/lib/libpcre.so.0.0.1 /lib/
sudo ln /usr/local/lib/libpcre.so.0 /lib/
**********************************************************************************************
Ubuntu Linux实用命令
tar(z-用 gzip 对存档压缩或解压;x-从存档展开文件;v-详细显示处理的文件;f-指定存档或设备)
tar –zxvf nginx-0.8.54.tar.gz
ip查看
ifconfig
编译
make
安装编译好的源码包
make install
编辑文件
sudo gedit /etc/profile
修改根限:chmod说明(u:与文件属主拥有一样的权限[a:所有人];+:增加权限;rwx:可读可写可执行)
-R:递归所有目录和文件
sudo chmod a+rwx -R logs
检查是库是否安装成功
dpkg --list|grep openssl
下载安装库
sudo apt-get install libtool
检查服务启动是否正常
ps -ef|grep
查找openssl安装路径
whereis openssl
更新源
sudo apt-get update
更新已安装的包
sudo apt-get upgrade