elesos

运行install_nginx.sh即可

1,需要修改install_nginx.sh中的相应路径: #存放源代码和本脚本的目录
compile_dir=/root/nginx_compile#备份
conf_backup_dir=/root/nginx_compile/_bak_ #nginx安装目录
nginx_install_dir=/mnt/nginx nginx_vhost_conf=/mnt/nginx/conf/vhosts website_dir=/mnt/nginx/html/elesos_com  
mv $compile_dir/elesos_com.conf $nginx_vhost_conf
2,需要修改nginx.conf中以/mnt开头的相关路径   3,需要修改elesos_com.conf中的相关路径与域名。   4,需要修改config.inc.php中的数据库连接用户与密码   5,需要修改nginx文件中的相关路径

看见输出“you can configure mysql now.”表示已安装成功。

安装完成后需要登录mysql修改root密码,参见在CentOS中快速安装PHP,MySQL,Nginx和phpMyAdmin


最后可以通过service nginx restart进行重启。



可以通过访问test.php测试网站是否能够访问。如果不能访问,请查看防火墙设置。



分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2021-08-16
  • 2021-11-27
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2021-08-26
  • 2021-09-12
  • 2021-11-27
  • 2021-11-27
  • 2021-07-02
相关资源
相似解决方案