RHE linux最小化安装步骤,centos6.5 x86

编程入门 行业动态 更新时间:2024-10-12 12:24:00

RHE linux<a href=https://www.elefans.com/category/jswz/34/1770431.html style=最小化安装步骤,centos6.5 x86"/>

RHE linux最小化安装步骤,centos6.5 x86

平台:centos 6.5 64位最小化+development tools

rpm -Uvh .noarch.rpm

EPEL,即Extra Packages for Enterprise Linux,企业版linux附加包。这个软件仓库里有很多非常常用的软件,而且是专门针对RHEL设计的,对RHEL标准yum源是一个很好的补充,完全免费使用,由Fedora项目维护,所以如果你使用的是RHEL,或者CentOS,Scientific等RHEL系的linux,可以非常放心的使用EPEL的yum源。

rpm -Uvh .rpm

remi依赖于EPEL源,有最新版本的PHP、MYSQL等软件。

yum -y install nginx

yum --enablerepo=remi -y install php php-fpm

yum install postfix(可选,有的会提示需要postfix)

yum --enablerepo=remi install php-gd php-mysql php-mbstring php-xml php-mcrypt

chkconfig --level 35 php-fpm on

chkconfig --level 35 nginx on

vi /etc/nginx/conf.d/default.conf

#location / {

root   /usr/share/nginx/html;

index index.php index.html index.htm;

#}

修改以下代码

#location ~ \.php$ {

#    root       html;

#  fastcgi_pass   127.0.0.1:9000;

# fastcgi_index  index.php;

#    fastcgi_param  SCRIPT_FILENAME /scripts$fastcgi_script_name;

#   include        fastcgi_params;

#}

去掉除root行外的#,/scripts 改成$document_root

vi /usr/share/nginx/html/index.php

phpinfo();

?>

service php-fpm start

service nginx start

测试http://serverIP

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

service iptables restart

或者service iptables stop

更多推荐

RHE linux最小化安装步骤,centos6.5 x86

本文发布于:2024-02-25 13:02:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1699060.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最小化   步骤   linux   RHE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!