Mono(https://github.com/mono/mono) is an open source implementation of Microsoft’s .NET Framework based on the ECMA standards for C# and the Common Language Runtime. The Mono project is part of the .NET Foundation(https://github.com/dotnet)
环境信息
Centos 7 3.10.0-1160
mono-complete-6.8.0
Fiddler
Gnome
安装步骤
安装 mono
首先安装 mono-complete,yum 源 epel 中包含了此安装包
$ yum info mono-complete Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Installed Packages Name : mono-complete Arch : x86_64 Version : 6.8.0 Release : 2.el7 Size : 0.0 Repo : installed From repo : epel Summary : Install everything built from the mono source tree URL : http://www.mono-project.com License : MIT $ yum install mono-complete
unzip fiddler-linux.zip -d fiddler-linux cd fiddler-linux mono ./Fiddler.exe
常见错误
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for ‘System.Windows.Forms.XplatUI’ threw an exception. —> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
启动容器前先在本地创建 Mysql 数据目录以用来持久化 Mysql 数据,如果需要配置文件,可以在本地创建好配置文件挂载到容器的 /etc/mysql/my.cnf,无需配置文件的话,则只需要将持久化的本地数据目录挂载到容器默认的数据目录 /var/lib/mysql,本示例中 Mysql 本地持久化数据目录为 /opt/docker_mysql_home/data/。使用以下命令启动容器
docker run -d --name mysql -v /opt/docker_mysql_home/data/:/var/lib/mysql/ -p 3306:3306 \ -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7.31
-e MYSQL_ROOT_PASSWORD=123456 通过环境变量配置 Mysql 初始化后的密码