> server { > listen 80; > server_name baidu.com; > set $index_file index.php; > location / { > root /opt/www/baidu/public; > index index.html index.htm index.php; > > if (!-e $request_filename) { > rewrite ^/(.*)$ /index.php?$1 last; > break; > } > index $index_file; > > } location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; > fastcgi_param SCRIPT_FILENAME > /opt/www/baidu/public/$fastcgi_script_name; include > fastcgi_params; } }
安装mysql
复制代码 代码如下:
> yum install mysql mysql-server
设置开机启动
> chkconfig mysqld on > > mysql -u root > > mysql> select user,host,password from mysql.user; > mysql> set password for root@localhost=password('123456'); mysql> exit show databases; use laravel5; show tables;
以上所述就是本文的全部内容了,希望大家能够喜欢。
请您花一点时间将文章分享给您的朋友或者留下评论。我们将会由衷感谢您的支持!
您可能感兴趣的文章: