如何更新pidshell file existt

博客访问: 215992
博文数量: 28
博客积分: 496
博客等级: 下士
技术积分: 813
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: 云计算
cloudstack版本:CloudStack-non-OSS-13.tar.bz2
安装完management后,重启cloud-management服务出现以下错误
service cloud-management status
cloud-management dead but pid file exists
The pid file locates at /var/run/cloud-management.pid and lock file at /var/lock/subsys/cloud-management.
Starting cloud-management will take care of them or you can manually clean up.
解决方法:
检查/var/log/cloud/management目录下log文件,是否只有一个catalina.log文件,如果只有一个该文件,可以发现里面提示permission denied,这时将catalina.log文件属主修改为cloud:cloud(-rw-r--r--. 1 cloud cloud 292898 Jun 27 14:49 catalina.out),然后重启cloud-management服务,应该能够正常起来,/var/log/cloud/management目录下的其他log文件也相应产生。
阅读(5090) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。MySQL:&Starting&MySQL…..&ERROR!&The&server&quit&without&updating&PID&file解决办法
[root@localhost mysql]# /etc/rc.d/init.d/mysql status
MySQL is not running, but lock file
(/var/lock/subsys/mysql[FAILED][root@localhost mysql]#
/etc/rc.d/init.d/mysql start
Starting MySQL...The server quit without
updating PID file
(/usr/local/mysql/data/localhost.localdomain.pid).&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
没有初始化权限表
3 解决办法
#cd /usr/local/mysql(进入mysql安装目录)
#chown -R mysql.mysql .
#su - mysql
$cd server
$scripts/mysql_install_db
4 本人解决过程
[root@localhost ~]# cd
/usr/local/mysql
[root@localhost mysql]# chown -R
mysql.mysql .[root@localhost mysql]# su - mysql[mysql@localhost ~]$ cd /usr/local/mysql[mysql@localhost mysql]$
scripts/mysql_install_dbInstalling MySQL
system tables...
Filling help tables...
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password
'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default.&
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql- perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
[mysql@localhost mysql]$ /usr/local/mysql/bin/mysqld_safe --user=mysql
&[1] 11767
[mysql@localhost mysql]$ :01:17 mysqld_safe Logging to
'/usr/local/mysql/data/localhost.localdomain.err'.
:01:17 mysqld_safe Starting mysqld daemon with databases
from /usr/local/mysql/data
[mysql@localhost mysql]$ /etc/rc.d/init.d/mysql statusMySQL running
(11830)&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
[mysql@localhost mysql]$ /etc/rc.d/init.d/mysql startStarting
MySQL&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
附一文:MySQL:
Starting MySQL….. ERROR! The server quit without updating PID
This step-by-step guide is mainly for FreeBSD, however the idea is
the same for Linux. Every once a while, when I update my FreeBSD
box, the system likes to shutdown my MySQL server. Therefore, I
need to start it again after the update is done. Unfortunately, the
upgrade process is not smooth every time. Sometimes it will throw
me some error.
/usr/local/etc/rc.d/mysql.server start
Oh well, I got the following error messages:
Starting MySQL..... ERROR! The server quit without updating PID file.
Sometimes, the message will tell you the exact location of which
Starting MySQL..... ERROR! The server quit without updating PID file (/var/db/mysql/.pid).
There are several solutions to troubleshoot these problems. I
will go over each one by one.
Solution 1: Reboot The Computer
Although it sounds simple, but it really works. During the
system upgrade, the OS may disable some of your daemons. Instead of
troubleshooting each one by one, the easiest way is to start
everything over. For example, I experienced this problem today
after upgrading the Apache and Ruby (Yes, MySQL is
not part of the update), and I got this error message afterward.
After rebooting the computer, the error message is gone.
Solution 2: Remove Your MySQL Config File
If you have modified your MySQL configuration file, MySQL may
not like it few versions after (MySQL is not backward compatibility
friendly). It can be the problem of using an unsupported variable,
or something similar. The easiest way is to remove your
configuration file, and try to start the MySQL server again:
Backup your MySQL configuration first.
mv /f /f.backup
And restart the MySQL server again:
/usr/local/share/mysql/mysql.server start
Hopefully you will see the following message:
Starting MySQL. SUCCESS!
Solution 3: Upgrade Your Database File
Sometimes, the newer MySQL doesn’t like the database created in
earlier version. I discovered this when I upgrade to MySQL
Starting MySQL..... ERROR! The server quit without updating PID file (/var/db/mysql/.pid).
Since MySQL tells me which PID file causes the problem, I open
the file and take a look what’s going on:
sudo tail /var/db/mysql/.err
And I saw something interesting: tables: Table
‘mysql.proxies_priv’ doesn’t exist:
InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: Completed initialization of buffer pool
InnoDB: highest supported file format is Barracuda.
InnoDB: 1.1.3 log sequence number 1589404
:49:17 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.proxies_priv' doesn't exist
:49:17 mysqld_safe mysqld from pid file /var/db/mysql/.pid ended
The reason is very simple. MySQL could not open a table created
in the earlier version (& 5.7.7) because it is not
compatible with the current version. So, we can try to start the
MySQL in safe mode through rc.d. First, you can edit the
/etc/rc.conf and put the following into the
mysql_enable="YES"
mysql_args="--skip-grant-tables --skip-networking"
Restart MySQL through rc.d:
/usr/local/etc/rc.d/mysql-server start
If you did it right, you should see something like the
following:
Starting MySQL.. SUCCESS!
Now, MySQL is already running the safe-mode. We want to perform
a MySQL upgrade on all tables:
sudo mysql_upgrade
You should see something like this:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
mysql.columns_priv
mysql.event
mysql.func
mysql.general_log
mysql.help_category
mysql.help_keyword
mysql.help_relation
mysql.help_topic
mysql.host
mysql.ndb_binlog_index
mysql.plugin
mysql.proc
mysql.procs_priv
mysql.servers
mysql.slow_log
mysql.tables_priv
mysql.time_zone
mysql.time_zone_leap_second
mysql.time_zone_name
mysql.time_zone_transition
mysql.time_zone_transition_type
mysql.user
Running 'mysql_fix_privilege_tables'...
Now, we want to switch the MySQL back to normal mode by
commenting the extra options in /etc/rc.conf:
mysql_enable="YES"
#mysql_args="--skip-grant-tables --skip-networking"
And restart MySQL through /etc/rc.d:
/usr/local/etc/rc.d/mysql-server restart
Now the MySQL is up and running again!
Happy MySQLing.
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。}

我要回帖

更多关于 java file exist 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信