Giter VIP home page Giter VIP logo

ss-panel-ss-_install's Introduction

shawdowsocks前后端_install_BY:兰兰想

#转载请保留此信息
#教程仅适用于 20170325版V3魔改,如果找不到的话我的Fork了一份…
#我的环境 : 搬瓦工 512RAM Ubuntu 14 x64
#教程参考网站:https://imeiji.github.io/2017/01/09/%E6%90%AD%E5%BB%BA%20sspanel%20v3%20%E9%AD%94%E6%94%B9%E7%89%88%E8%AE%B0%E5%BD%95/
#其他参考网站:https://iforday.com/160.html
#https://stackoverflow.com/questions/9236953/bash-chattr-command-not-found/35169660#35169660?newreg=31d442f0eacd4007bf6a5542bc58ad20
#用最简单的方式进行 安装与运行

1.安装screen(后期也要靠它保持后端的运行)
apt-get install screen
然后输入命令screen直接回车两下

2.安装LNMP一键包
虽然内存只有512,但是!更推荐使用1.3一键包,因为我用1.2的时候出错了。
wget http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz && tar xvzf lnmp1.3-full.tar.gz
cd lnmp1.3-full && ./install.sh
输入MySQL密码(记下来,别忘了), 用MYSQL5.5,php7.0
出现enjoy it绿字后,继续下一步

3.添加网站
lnmp vhost add
输入域名, 然后其它选 no

4.修改 nginx 配置
winscp登陆,修改 这个目录/usr/local/nginx/conf/vhost/你的域名.conf
sever段增加
location /
{
try_files $uri $uri/ /index.php$is_args$args;

}

root那一行后面加public,别忘了分号;
root /home/wwwroot/你的域名/public;

/usr/local/nginx/conf/
这个目录中的nginx.conf,server段,中的server name推荐改为你的域名 + www你的域名,如下:
      server_name www.你的域名 你的域名;

5.网站前端ss-panel 安装
cd /home/wwwroot/你的域名
apt-get install git -y
git clone -b master https://github.com/esdeathlove/ss-panel-v3-mod.git tmp && mv tmp/.git . && rm -rf tmp && git reset --hard
chown -R root:root *
chmod -R 755 *
chown -R www:www storage

6.安装依赖
apt-get install e2fsprogs
(为了使下面的chattr 命令可以运行)

7.继续安装前端,确保你的目录依旧在/home/wwwroot/你的域名
chattr -i .user.ini
mv .user.ini public
cd public
chattr +i .user.ini
service nginx restart

8.配置网站前端数据库
http://你的域名/phpmyadmin
如果域名暂时未生效,可以先用ip,更推荐将自己电脑DNS改为google的8.8.8.8和8.8.4.4,既可以防污染又可以更快地访问域名
用户 : root
密码 :安装 lnmp 时设置的,我提醒过你别忘了!
登录后,上面 用户 -> 新建 -> 添加用户
Username 使用文本域 , 填写你的用户名
Host 任意主机 %
密码 使用文本域 填写密码
用户数据库 :
勾选 创建与用户同名的数据库并授予所有权限   全局权限 :  全选
按执行 选择刚刚新建的数据库 导入网站目录下的 glzjin_all.sql   没写完以后写

ss-panel-ss-_install's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.