首页 小组 文章 搜索 用户

centos下yum安装OpenLiteSpeed

2018-05-03 08:36:46
0
668

支持centos5 6 7,yum下安装非常方便,能自动升级到新版,下次升级直接yum update -y就行。
选安装所需要支持组件
yum -y install ncurses ncurses-devel glibc wget flex re2c unzip bison gcc autoconf autoconf213 automake mhash-devel cmake ruby file bzip2 bzip2-devel diff* libtool libtool-libs gcc-c++ libjpeg libjpeg-devel libpng libpng-devel libxml2 libxml2-devel curl curl-devel libmcrypt-devel freetype freetype-devel patch make zlib zlib-devel libtool-ltdl-devel expat-devel pcre-devel geoip-devel openssl-devel openldap-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel vixie-cron libevent libevent-devel
yum install -y epel-release

cd /etc/yum.repos.d

wget  http://rpms.litespeedtech.com/centos/litespeed.repo

cd /root

接下来安装openlitespeed
yum install openlitespeed -y
开始运行
service lsws start
停止运行
service lsws stop
重启
service lsws restart
openlitespeed 运行于nobody用户和nobody组下,十分的安全
加入系统自启动
chkconfig --levels 345 lsws on
打开防火墙
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 7080 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
安装完后打开浏览器:https://ip:7080进行管理
默认管理是admin密码是123456
装php方法:
https://www.osyum.com/group/topic/249/


评论