Mysql-Mac安装(brew)

在Mac上可以直接通过 brew 工具进行安装

安装Mysql

brew install mysql

等待安装成功会提示信息如下:

We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation

To connect run:
mysql -uroot

A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.

To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start

Read More

Mysql-Debian安装&启动mysql

Debian 下通过apt-get命令行安装

  1. 同时安装了服务端 ,客户端
    sudo apt-get install mysql-server mysql-client

  2. 安装过程中会弹出提示窗Configuring myysql-server-x.x
    提示窗提示输入root初始化的密码

  3. 安装结束后会启动mysql服务,如果没有启动服务那就手动执行
    sudo /etc/init.d/mysql start

Read More

Git-SmartGit License过期重置

SmartGit 是java一个跨平的Git图形化界面
一般使用期限为30天,当使用期限到期后,可以通过删除配置文件重置license时长

Windows: %APPDATA%\syntevo\SmartGit\Version
OS X: ~/Library/Preferences/SmartGit/Version
Unix/Linux: ~/.smartgit/Version

如上所示路径,Version 为SmartGit 的版本号,进入相应的文件夹后删除setting.xml 文件之后即可重置

Read More

Jenkins Mac系统清理卸载

q
在Mac 上Jenkins 有独特的pkg包,安装完后会默认启动,参考网上的方法整理下:

/Library/Application Support/Jenkins/Uninstall.command


sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist  
sudo rm !$
sudo rm -rf /Applications/Jenkins "/Library/Application Support/Jenkins" /Library/Documentation/Jenkins
sudo rm -rf /Users/Shared/Jenkins
# if you want to get rid of all the jobs and builds:
sudo dscl . -delete /Userskkkkk/
# delete the jenkins user and group (if you chose to use them):
sudo dscl . -delete /Groups/jenkins

Read More