gov 发表于 2024-4-7 23:51:17

亲测!某站8000买的默往im即时通讯源码

https://static.xkwo.com/xiaok/decc9e4d287c47f4b65ae9752a8c8d35.pnghttps://static.xkwo.com/xiaok/243d5868a69c451aa1eecd2a4fceaf75.pngK网首发搭建教程网站以及脚本用到的环境Nginx1.22+Mysql5.7+PHP7.4+redis7.0+nodejs14.17.6+etcd+minio+ssdb+kafka+安装mini:终端执行 apt-get install rpm然后安装命令 rpm -ivh minio-20221008201100.0.0.x86_64.rpm 启动服务nohup minio server /opt/lib/minio --console-address ":9001" 1>/dev/null 2>&1 &安装ssdb:进入目录make进行编译 cd ssdb-master && make 如果没有make 去安装,apt-get install make将指定安装目录 make install PREFIX=/opt/lib/ssdb 执行进入ssdb目录 cd ../ssdb启动服务 ./ssdb-server -d ssdb.conf 关闭服务 ./ssdb-server ssdb.conf -s stop重启服务 ./ssdb-server ssdb.conf -s restart安装kafka:宝塔上安装java1.8设置jdk环境变量 vi /etc/profileexport JAVA_HOME=/www/server/java/jdk1.8.0_371export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarsource /etc/profile编辑config/server.properties文件填写listeners=PLAINTEXT://127.0.0.1:9092进入目录 cd kafka_2.13-3.3.2启动zookeeper nohup ./bin/zookeeper-server-start.sh config/zookeeper.properties 1>/dev/null 2>&1 &关闭zookeeper./bin/zookeeper-server-stop.sh config/zookeeper.properties启动kafka nohup ./bin/kafka-server-start.sh config/server.properties 1>/dev/null 2>&1 &关闭kafka ./bin/kafka-server-stop.sh config/server.properties安装etcd:vi /etc/profileexport ETCDCTL_API=3source /etc/profilecd etcd-v3.5.5-linux-amd64 && nohup ./etcd >./etcd.log 2>&1 &导入数据库:开启root远程访问 mysql -u root -puse mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';flush privileges;新建三个数据库并导入数据库脚本databusenterpriseimwebIM脚本:修改数据库账号密码 configs/*/*.toml   dsn = 执行清理日志 sh clear_logs-清创日志执行启动服务 sh start-启动服务创建网站:api 伪静态 location / {try_files $uri $uri/ /index.php$is_args$query_string;} 网站目录运行目录 public配置 .env WEB_URL= JK_HOST= DB_DATABASE= DB_PASSWORD= DB_WEB_ADMIN_USERNAME= DB_WEB_ADMIN_PASSWORD=运行sh ./run.shphp禁用函数全部删除或者根据job.log提示删除设置跨域访问 add_header Access-Control-Allow-Origin *;admin安装编译依赖包 yarn install配置.env api接口地址 VUE_APP_API_BASE_URL= VUE_APP_PHOTO_URL=打包编译yarn run build网站目录运行目录dist设置伪静态 if (!-e $request_filename) { rewrite ^/(.*) /index.html last; break; }
web配置.env telegram接口ID和HASH以及接口地址 REACT_APP_TELEGRAM_API_ID= REACT_APP_TELEGRAM_API_HASH= REACT_APP_HOST_A=安装编译依赖 npm install拷贝文件 cp node_modules/tdweb/dist/* public/修改src/Constants.js127行改为上一步拷贝到public内的wasm文件名 WASM_FILE_NAME =打包编译 npm run build网站目录运行目录 build源码下载链接: https://pan.baidu.com/s/1KQ5A_cOE--zIse4wQiLP7g?pwd=6tty 提取码: 6tty
页: [1]
查看完整版本: 亲测!某站8000买的默往im即时通讯源码