💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 三个依赖包 wget  https://mirrors.cnnic.cn/apache/apr/apr-1.6.5.tar.gz wget https://mirrors.cnnic.cn/apache/apr/apr-iconv-1.2.2.tar.gz wget  https://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.gz ## 安装Apr ``` tar -zxvf apr-1.6.5.tar.gz ./configure --prefix=/usr/local/apr make && make install ``` ## 安装apr-iconv ``` tar -zxvf apr-iconv-1.2.2.tar.gz ./configure --with-apr=/usr/local/apr --prefix=/usr/local/apr-iconv make && make install ``` ## 安装apr-util ``` tar -zxvf apr-util-1.6.1.tar.gz ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-iconv=/usr/local/apr-iconv/bin/apriconv make && make install ``` 如果编译出错请执行下面 ``` yum -y install expat-devel ``` ## 安装 tomcat-native 在tomcat的bin目录下有一个tomcat-native.tar.gz 解压 ``` 解压在进入native目录执行以下操作 ./configure --with-apr=/usr/local/apr  --with-java-home="jdk路径" make && make install ``` ## 修改环境变量 ``` vi /etc/profile #apr export LD\_LIBRARY\_PATH=/usr/local/apr/lib source /etc/profile #重新加载环境变量 ``` ## 配置tomcat 修改tomcat的bin目录下的server.xml ``` <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 把on改为off <Executor name="tomcatThreadPool"            namePrefix="catalina-exec-"           maxThreads="300"            minSpareThreads="30"/> <Connector     executor="tomcatThreadPool"                 port="8080"                 protocol="org.apache.coyote.http11.Http11AprProtocol"                connectionTimeout="20000"                redirectPort="8443"                acceptCount="900"                disableUploadTimeout="true"                URIEncoding="UTF-8"                enableLookups="false"                compression="on"                compressionMinSize="1024"                 />   ## 注释掉下面那行,如果不用apache <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> ```