linux上传项目
来源:互联网 发布:合肥晨飞网络 编辑:程序博客网 时间:2024/06/06 08:54
用winscp工具连接,sftp协议,22端口,用户名,密码(这用户名是服务器的用户名和密码,不是ftp工具的账号密码)
阿里云服务器项目根目录:
/usr/local/nginx/html/
数据库目录:
/usr/local/mysql/bin/
输入指令:
./mysql -uroot -p密码 登录数据库
创建数据库:
create 库名;
导入数据库:
source 后面是sql文件路径;
在服务器vhost.conf文件中配置域名指向(把下面这段代码修改好后,添加到vhost.conf文件后面就行了):
#user nobody;
server {
listen 80;
server_name 120.77.65.70; //这里ip改成相应的域名
#charset koi8-r;
access_log logs/120.77.65.70.access.log; //这里ip改成相应的域名
location / {
root /usr/local/nginx/html/www; //www改成项目根目录文件名
index index.php index.html index.htm;
if(!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; }
}
error_page 404 /404.html;
# redirect server error pages to thestatic page /50x.html
#
#error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# root /usr/local/nginx/html/www; //www改成项目根目录文件名
# }
# proxy the PHP scripts to Apachelistening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGIserver listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/local/nginx/html/www; //www改成项目根目录文件名
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, ifApache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
- linux上传项目
- Linux - 上传项目到SVN分支
- 上传项目到Linux服务器的步骤
- Linux下往github上传项目
- linux环境下上传java项目
- linux下使用SVN上传项目
- 项目上传至服务器;使用linux系统将本地项目上传到服务器上
- 上传项目
- 项目上传
- 使用maven打包项目并上传到Linux服务器
- svn创建linux服务器svn仓库目录并上传项目
- 如何将 Java Web 项目上传到linux
- 使用Maven打包项目并上传到Linux服务器
- linux上传本地已有项目到github
- 项目上传到linux上连接数据库失败
- linux 安装svnserve 并在客户端检出项目并上传
- linux项目:在linux下实现文件的上传与下载工作
- svn下载项目-上传项目
- 用74HC165读8个按键状态
- ftpclient 550 permission denied
- 初探python
- 推荐一个动画引擎库
- 松柏先生:制胜的一拳靠的不是运气,而是洞察力!
- linux上传项目
- 线性表综合试验(间接寻址)
- Java day6
- 数据类型bigint int smallint 和tinyint的区别
- bzoj2396 神奇的矩阵
- 持续集成与灰度发布
- (算法分析Week7)Remove Element[Easy]
- xcode Build Phases 增加新内容;SDL2 renderer already associated with window 错误
- IT男如何护肤?上班族男性护肤的方法有哪些?[图]