pyenv

pyenv

MySQL 安装配置简介

不推荐通过root权限直接访问数据库,MySQL 使用总结中介绍如何创建、设置数据库用户

开启外部访问

配置 MySQL 服务器 3306 端口监听

编辑配置文件

修改配置文件:/etc/mysql/mariadb.conf.d/50-server.cnf
将[mysqld]节中的bind-address项修改为:bind-address=0.0.0.0

重新启动MySQL服务器

/etc/init.d/mysql restartservice mysqld restart

设置root用户远程访问权限

mysql -uroot -p

use mysql;
select User,authentication_string,Host from user;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'new_password';
flush privileges;
select User,authentication_string,Host from user;

常用指令

启动:/etc/init.d/mysql startservice mysqld start
停止:/etc/init.d/mysql stopservice mysqld stop
重启:/etc/init.d/mysql restartservice mysqld restart

- 阅读剩余部分 -

redis error

[E 190408 13:02:07 web:1670] Uncaught exception GET /api/user_token (**.**.**.**)
    HTTPServerRequest(protocol='http', host='**.**.com', method='GET', uri='/api/user_token', version='HTTP/1.0', remote_ip='**.**.**.**')
    Traceback (most recent call last):
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/tornado/web.py", line 1592, in _execute
        result = yield result
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
        value = future.result()
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
        yielded = self.gen.send(value)
      File "/mnt/BenuData/cloud/BenuIotApi/app/api_v1_0/api_auth.py", line 80, in get
        pipeline.execute()
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 2879, in execute
        return execute(conn, stack, raise_on_error)
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 2821, in _execute_pipeline
        self.raise_first_error(commands, response)
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 2828, in raise_first_error
        raise r
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 2816, in _execute_pipeline
        self.parse_response(connection, args[0], **options))
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 2838, in parse_response
        self, connection, command_name, **options)
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/client.py", line 680, in parse_response
        response = connection.read_response()
      File "/root/.pyenv/versions/BenuIotApi/lib/python3.6/site-packages/redis/connection.py", line 629, in read_response
        raise response
    redis.exceptions.ResponseError: Command # 1 (HSET session:7524acfa-59bb-11e9-ba22-00163e11cf62 user_uuid 5b9604e90f484b60e475b967) of pipeline caused error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
[E 190408 13:02:07 web:2162] 500 GET /api/user_token (**.**.**.**) 82.30ms

https://www.cnblogs.com/qq78292959/p/3994349.html

未命名文档

安装OpenJDK 8 JDK

sudo apt install default-jdk

安装OpenJDK 8 JRE

sudo apt install default-jre

记我的世界基岩版(bedrock)服务端安装过程

首先下载我的世界基岩版服务端程序,这里可以从官网直接下载

https://www.minecraft.net/zh-hans/download/server/bedrock/

也可以通过wget命令直接下载指定版本:

wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.10.0.7.zip

解压下载好的压缩包

apt install zip
unzip bedrock-server-1.10.0.7.zip

启动一下试试 LD_LIBRARY_PATH=. ./bedrock_server,发现没有启动成功,查看错误信息

./bedrock_server: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

原来是没有安装libcurl.so.4,百度插一下这个文件属于哪个包,直接安装然后再次启动

apt install libcurl4-openssl-dev
LD_LIBRARY_PATH=. ./bedrock_server

依旧报错,继续查看错误信息,然后查

./bedrock_server: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

原来是需要安装openssl,安装后再次启动,

apt install openssl

依旧报错

./bedrock_server: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ./bedrock_server)

安装libc6

echo 'deb http://ftp.debian.org/debian/ buster main' >> /etc/apt/sources.list
apt update
apt -t buster install libc6

再次启动

LD_LIBRARY_PATH=. ./bedrock_server

终于可以正常启动了

最新文章

最近回复

  • muumlover: 你好
  • 测试人: 你好呀
  • ww: 看了这么多就这个有用,牛逼
  • 未知狐: 啊确实,话说,博主博客好像没有评论回复邮件提醒,可以试试Comm...
  • Skogen: 系统的差异,不同的Linux发行版集成的包也不一样,安装难度也就...
  • Skogen: 系统是 Debian9,理论上Debian系的系统应该通用的。
  • 2247: 请问用的是什么系统?
  • 未知狐: 受教了,我比博主运气好点,是因为不理解命令参数等设定而频繁失败,...
  • Skogen: 23
  • Skogen: asd

分类

标签

归档

其它