💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
1.清除yum源: ~~~ yum clean all ~~~ 2.重新生成yum源: ~~~ yum makecache ~~~ 3.安装wget: ~~~ yum -y install wget ~~~ 4.安装chrome (1): a. ~~~ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm ~~~ b. ~~~ yum install ./google-chrome-stable\_current\_x86\_64.rpm ~~~ c. ~~~ yum install mesa-libOSMesa-devel gnu-free-sans-fonts wqy-zenhei-fonts ~~~ 5.安装chrome (2): a. ~~~ cd /etc/yum.repos.d/ touch google-chrome.repo ~~~ b. ~~~ [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub ~~~ c. ~~~ yum -y install google-chrome-stable --nogpgcheck ~~~ 6.卸载chrome: a. ~~~ yum remove -y chrome包名 ~~~ 7.后端启动: ~~~ nohup xvfb-run java -jar 您的应用名.jar >dev/null 2>&1 & ~~~ 8.安装JDK8: ~~~ yum install GConf2 -y yum install Xvfb -y yum install java-1.8.0-openjdk.x86_64 -y ~~~ 9.循环运行脚本: ~~~ #!/bin/sh while true;do count=`ps -ef|grep java|grep -v grep` if [ "$?" != "0" ];then echo ">>>>no httpd,run it" xvfb-run java -jar /www/您的应用名.jar else echo ">>>>httpd is runing..." fi sleep 1 done ~~~