我的操作系统是 11.04。
我有apache2与mysql安装。
如何阻止apache2,mysql在计算机启动时自动启动?
我在启动时得到以下信息,大约需要 3 到 5 分钟,而通常大约 1 分钟:
Run Code Online (Sandbox Code Playgroud)Waiting network configuration Booting system without full network configuration
我在谷歌搜索后发现我应该更改/etc/networks/interface。我注释掉了那里的所有内容,但问题仍然存在:
# auto lo
# iface lo inet loopback
# auto eth0
# iface eth0 inet dhcp
# address 192.168.0.2
# netmask 255.255.255.0
# gateway 192.168.0.1
# broadcast 192.168.0.255
Run Code Online (Sandbox Code Playgroud)
如何让 Ubuntu 11.10 的启动更快?
我安装gdm了一段时间作为我的显示管理器,在删除它后,lightdm 不会自行启动。相反,我必须登录到 tty,然后运行sudo start lightdm.
运行dpkg-reconfigure lightdm也不起作用:
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
Run Code Online (Sandbox Code Playgroud)
我也尝试过完全重新安装 lightdm,但效果不佳
我/var/log/boot.log有以下几行:
* Starting LightDM Display Manager
* Starting ACPI daemon
* Starting anac(h)ronistic cron
* Starting save kernel messages
* Stopping LightDM Display Manager
Run Code Online (Sandbox Code Playgroud) 我有以下rc.local脚本:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sh /home/incero/startup_script.sh
/bin/chmod +x /script.sh
sh /script.sh
exit 0
Run Code Online (Sandbox Code Playgroud)
第一行,startup_script.sh实际下载第三行中提到的script.sh文件/script.sh。
不幸的是,它似乎没有使脚本可执行或运行脚本。 …
我正在运行 ubuntu 服务器。当我尝试登录 mysql(正在运行)时,出现以下错误
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Run Code Online (Sandbox Code Playgroud)
但是文件/var/run/mysqld夹中不存在 mysqld.sock 文件。在执行ps aux | grep mysql命令时,我意识到 mysql 服务器没有运行。
然后我尝试使用重新启动mysql服务器
service mysql start
service mysql restart
/etc/init.d/mysql start
Run Code Online (Sandbox Code Playgroud)
但是,启动过程在所有 3 种情况下都失败了。
/var/log/mysql/mysql.log和/var/log/mysql/mysql.err文件是空的。
但/var/log/error.log显示以下信息:
140425 12:49:05 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140425 12:49:05 [Note] Plugin …Run Code Online (Sandbox Code Playgroud) 我安装了 MySQL,并更改了配置,以便将数据库存储在单独的硬盘驱动器上。在此过程中,MySQL 已停止自动启动。当我启动计算机时,我需要运行以下命令:
sudo service mysql start
Run Code Online (Sandbox Code Playgroud)
让 MySQL 运行。你如何让 MySQL 在启动时启动?
我在安装 Ubuntu 19.10 后发现了这个 im-launch 启动条目,它执行
sh -c 'if ! [ -e "/usr/bin/ibus-daemon" ] && [ "x$XDG_SESSION_TYPE" = "xwayland" ] ; then exec env IM_CONFIG_CHECK_ENV=1 im-launch true; fi'
我想知道这个条目的目的,如果我禁用它会发生什么?
我已经在我的 Ubuntu 14.04 上安装了最新的 Telegram App (v 0.8.32)。我希望 Telegram 在启动时在 Tray 中最小化运行并向我显示新消息,但我不能,因为在应用程序设置中没有任何选项。帮帮我我该怎么做....
我在论坛的某个地方找到了一个问题的解决方案,其中唯一可用的分辨率是 800x600 和 1024x768。我设法获得了 1440x900,效果很好。每次我重新启动时,这种模式都会消失。我被迫重新输入命令,那么我该如何保存呢?我假设这是一个简单的命令,但在 Ubuntu 方面,我是最大的菜鸟。命令是:
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsyncxrandr --addmode VGA1 1440x900_60.00xrandr --output VGA1 --mode 1440x900_60.00我不知道从哪里开始寻找。我一直在阅读有关守护进程的内容,但不了解这个概念。
更多细节 :
有任何想法吗?有人可以指出我正确的方向吗?
只是寻找最简单的解决方案。