"lamp"


~ yum -y install httpd mysql mysql-server php php-mysql php-gd php-mbstring
启动服务

~ service httpd start
~ service mysqld start


开启PHP错误提示:1)vi /etc/php.ini 2)设置display_errors = On(530行左右)
关闭防火墙 service iptables stop
关闭selinux vi /etc/selinux/config
PHP代码默认放在/var/www/html
设置自启动

~ chkconfig httpd --level 2345 on
~ chkconfig mysqld --level 2345 on



"lnmp"


~ yum -y install nginx mysql mysql-server php php-mysql php-gd php-mbstring php-fpm


启动服务

~ service nginx start
~ service mysqld start
~ service php-fpm start


设置自启动

~ chkconfig nginx --level 2345 on
~ chkconfig mysqld --level 2345 on
~ chkconfig php-fpm --level 2345 on


Linux使用lsyncd实现2个文件夹实时同步

官方文档: https://axkibe.github.io/lsyncd/download/ 1.安装 $ yum install lsyncd $ yum install rsync $ yum install libtermcap-devel ncurses-devel l...

阅读全文

firewall 防火墙常用命令

查看版本 $ firewall-cmd --version 0.4.3.3 help $ firewall-cmd --help 状态 $ firewall-cmd --state running 重载配置 $ firewall-cmd --reload 重新加载...

阅读全文

修改linux centos系统默认时区

方法一 先安装ntpdate: yum install -y ntpdate 再选择一个时间服务器来更新时间: ntpdate time.windows.com 恢复系统时间为utc时间 ln -sf /usr/share/zo...

阅读全文

欢迎留言