PHP环境LAMP/LNMP安装与配置
Apache是通过轮询机制的方式处理
Nginx是通过事件监听的方式处理
安装软件:
- 编译安装软件:./configure -> make -> make install
- 指定安装目录:./configure --prefix=/usr/local/php7-imooc --enable-fpm
- 使用工具安装:yum install 软件名
配置网络:systemctl restart network.service
BOOTPROTO=static
IPADDR=192.168.1.150
NETMASK=255.255.255.0
NM_CONTRALLED=no
ONBOOT=yes
允许远程登录:
sudo firewall-cmd --zone=public --add-port=22/tcp --permanent
sudo systemctl restart firewalld.service
安装mysql:
sudo yum install camke gcc-c++ ncurses-devel perl-Data-Dumper boost boost-doc boost-devel
cmake
make -> make install
mysql
安装apache:
mv apr apr-util ./httpd/srclib/
mv download pcre.tar.bz2
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
ps aux | grep httpd