在启动期间按住某些键可以使用一些 Mac 功能。 请在 Mac 开机并听到启动声后立即按住这些键。请一直按住,直至所述行为出现。以下组合适用于 基于 Intel 的 Mac 电脑 。 在启动期间按住 描述 Shift ⇧ 以 安全模式 启动。 Option ⌥ 启动进入 启动管理器 。 C 从可引导的 CD、DVD 或 USB 闪存驱动器(如 OS X 安装介质)启动。 D 启动进入 Apple Hardware Test 或 Apple Diagnostics ,具体取决于您正在使用的 Mac。 Option-D 通过互联网启动进入 Apple Hardware Test 或 Apple Diagnostics 。 N 从兼容的 NetBoot 服务器启动。 Option-N 使用默认的启动映像从 NetBoot 服务器启动。 Command (⌘)-R 从 OS X 恢复功能 启动。 Command-Option-R 通过互联网从 OS X 恢复功能 启动。 Command-Option-P-R 重置 NVRAM 。当再次听到启动声后,请松开这些键。 Command-S 以 单用户模式 启动。 T 以 目标磁盘模式 启动。 X 从 OS X 启动宗卷启动,否则 Mac 将从非 OS X 启动宗卷启动。 Command-V 以 详细模式 启动。 推出键 (⏏)、F12、鼠标键或触控板按钮 推出可移动介质,如光盘。 其他 Mac 键盘快捷键 在 Mac 启动后可用。 上次修改时间: 2015-6-2
豆沙绿的色调为:85 饱和度:123 亮度:205 网页颜色 #C7EDCC RGB N ( r , g , b ) (199, 237, 204) CMYK N ( c , m , y , k ) (28, 0, 28, 0) HSV ( h , s , v ) (128°, 16%, 93%) RGB: #CCE8CF
mysql升级后不再默认root用户本地免密码登录,而是初始生成了一个随机密码。 这个随机密码存放的位置也比较坑爹,可用如下命令看看: cat /var/log/mysqld.log |grep password 创建新用户还是和旧版本一样,具体命令如下: mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> WITH GRANT OPTION; mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%' -> WITH GRANT OPTION; mysql> CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin_pass'; mysql> GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost'; mysql> CREATE USER 'dummy'@'localhost';
Step 1, increase the maximum number of open file descriptors To handle thousands of concurrent TCP connections, we should increase the limit of file descriptors opened. Edit the limits.conf vi /etc/security/limits.conf Add these two lines * soft nofile 51200 * hard nofile 51200 Then, before you start the shadowsocks server, set the ulimit first ulimit -n 51200 Step 2, Tune the kernel parameters The priciples of tuning parameters for shadowsocks are Reuse ports and conections as soon as possible. Enlarge the queues and buffers as large as possible. Choose the TCP congestion algorithm for large latency and high throughput. Here is an example /etc/sysctl.conf of our production servers: fs .file-max = 51200 net .core .rmem_max = 67108864 net .core .wmem_max = 67108864 net .core .netdev_max_backlog = 250000 net .core .somaxconn = 4096 net .ipv4 .tcp_syncookies = 1 net .ipv4 .tcp_tw_reuse = 1 net .ipv4 .tcp_tw_recycle = 0 net .ipv4 ...