作者:admin 日期:2023-09-08 瀏覽: 次
銀河麒麟kylin
系統版本:kylin v10 sp2
1.更新yum源
[root@localhost ~]#wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
sed -i 's/$releasever/8-stream/g' /etc/yum.repos.d/CentOS-Base.repo
rpm -e --nodeps kylin-release
yum install epel-release
yum clean all
yum makecache
2.更新litespeed yum源
wget -O a.sh https://repo.litespeed.sh
東臺數據恢復sed -i 's/oracle/kylin/g' a.sh
sed -i '/$(echo ${REPO_VER} | cut -c1-1)/8/g' a.sh
bash a.sh
3.安裝openlitespeed
yum install openlitespeed
4.啟動litespeed
運行systemctl start lsws 來啟動服務,(使用systemctl stop lsws來停止服務)
一個簡單的web服務就運行成功了。
在瀏覽器輸入 http://[address]:8088/來訪問web, [address]是主機ip或者域名。 使用 localhost進行本機訪問, OpenLiteSpeed默認運行的端口是8088.
openlitespeed管理端端口7080
OpenLiteSpeed的安裝目錄是 /usr/local/lsws. 默認的admin的密碼是隨機生成的,密碼文件在
泰州數據恢復/usr/local/lsws/adminpasswd
參考鏈接:
1.https://openlitespeed.org/kb/install-ols-from-litespeed-repositories/
2.https://www.tecmint.com/install-openlitespeed-in-centos-8/