新建网站,把源码上传到网站根目录就解压.
输入网站地址,出现安装界面
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322205722.png)
点击蓝色链接,登陆微软获取应用程序授权,复制机密保存出来
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322205953-1024x361.png)
点击”知道了,返回到快速启动.往下拉,看到第2点,复制ID保存下来
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322210134.png)
把得到的机密和ID分别填入安装程序里面
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322210536.png)
直接下一步
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322210630.png)
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322210802.png)
安装成功:
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322210839.png)
登陆后台并修改原始密码
进入后台可以进行一些相关的设置
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322211052-584x1024.png)
为了提高提高系统访问性能,我们需要定时刷新缓存,不然你存取的文件有的时候看不到,影响体验。
进入宝塔面板设置计划任务
刷新token:php /www/wwwroot/one.xinxiu.com.cn/one.php token:refresh
改成自己的路径
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322212002.png)
刷新缓存:php /www/wwwroot/one.xinxiu.com.cn/one.php cache:refresh
改为自己的路径
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322212126.png)
去掉地址栏中的/?/,需配合伪静态使用
[huifu]
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = “21”){
rewrite ^/(.*)$ /index.php?/$1 last;
}
![](https://www.xinxiu.com.cn/wp-content/uploads/2020/12/20200322212347.png)
[/huifu]
至此,oneindex安装完成.
评论前必须登录!
注册