CentOs配置php运行环境

  • systemctl enable xxx 配置开机自启
  • systemctl restart xxx 重启服务

1、安装openssh

yum install openssh-server
systemctl restart sshd
systemctl enable sshd.service
下载secureCRT

2、安装vsftpd(FTP上传)

yum install -y vsftpd
systemctl start vsftpd.service  
systemctl enable vsftpd.service
systemctl restart vsftpd.service

---

//配置
anonymous_enable=NO
local_umask=022
allow_ftpd_full_access
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

---
如何关闭Linux里边的selinux ?(解决FlashFxp中文件var目录不能查看问题)
sestatus -v
vi /etc/sysconfig/selinux
SELINUX=disabled

---
更改var目录及其子目录为读写权限
chmod -R 777 /var

---
关闭防火墙
systemctl stop firewalld


下载FileZilla,开源的FTP上传工具

3、安装Apache Server

yum install httpd httpd-devel
systemctl restart httpd
systemctl enable httpd.service

4、安装mariadb(MYSQL)

yum install mariadb-server mariadb 
systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
systemctl enable mariadb
//修改mysql密码
set password for'root'@'localhost' =password('password');

5、安装php(7.0)

rpm  -Uvh  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm  -Uvh  https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

---
yum install php70w php70w-opcache
yum install yum-plugin-replace yum replace php-common --replace-with=php70w-common

你可能感兴趣的:(CentOs配置php运行环境)