centos下 openstack yum无法安装dashboard

报错
Error: Package: python-django-openstack-auth-1.1.2-1.el6.noarch (openstack-havana)
Requires: Django14
Error: Package: python-django-appconf-0.5-3.el6.noarch (openstack-havana)
Requires: Django14
Error: Package: python-django-horizon-2013.2.3-1.el6.noarch (openstack-havana)
Requires: Django14
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

3个回答

依赖dfjango 你需要先安装好它

nihena8015
nihena8015 回复qq_34226779:yum install Django 跟这个好像没有关系,yum服务端不知道是不是有问题。在线下载安装按照常理不应该报错的,提示的那些包,服务器都上有。
接近 4 年之前 回复
qq_34226779
qq_34226779 装好好了 yum install Django 还是不行
接近 4 年之前 回复

从昨天开始,我也报这个错误,不知道怎么解决。之前安装到这里都没有问题,不知道哪里限制了。就报错。从新安装也报错。
[root@openstack ~]# yum -y install openstack-dashboard
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile

  • base: mirrors.btte.net
  • epel: mirrors.opencas.cn
  • extras: mirrors.btte.net
  • rpmforge: mirrors.neusoft.edu.cn
  • updates: mirrors.opencas.cn Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package openstack-dashboard.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: python-novaclient >= 2012.1 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-keystoneclient >= 0.3.2 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-django-openstack-auth >= 1.0.11 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-django-horizon >= 2013.2.3 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-django-compressor >= 1.3 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-ceilometerclient >= 1.0.6 for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-troveclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-swiftclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-oslo-config for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-neutronclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-netaddr for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-heatclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-glanceclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-eventlet for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-django-appconf for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: python-cinderclient for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: mod_wsgi for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Processing Dependency: httpd for package: openstack-dashboard-2013.2.3-1.el6.noarch --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-47.el6.centos.3 will be installed --> Processing Dependency: httpd-tools = 2.2.15-47.el6.centos.3 for package: httpd-2.2.15-47.el6.centos.3.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-47.el6.centos.3.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-47.el6.centos.3.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.3.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.3.x86_64 ---> Package mod_wsgi.x86_64 0:3.2-7.el6 will be installed ---> Package python-ceilometerclient.noarch 0:1.0.8-1.el6 will be installed --> Processing Dependency: python-six for package: python-ceilometerclient-1.0.8-1.el6.noarch --> Processing Dependency: python-setuptools for package: python-ceilometerclient-1.0.8-1.el6.noarch --> Processing Dependency: python-prettytable for package: python-ceilometerclient-1.0.8-1.el6.noarch --> Processing Dependency: python-iso8601 for package: python-ceilometerclient-1.0.8-1.el6.noarch --> Processing Dependency: python-argparse for package: python-ceilometerclient-1.0.8-1.el6.noarch ---> Package python-cinderclient.noarch 0:1.0.7-2.el6 will be installed --> Processing Dependency: python-simplejson for package: python-cinderclient-1.0.7-2.el6.noarch --> Processing Dependency: python-requests for package: python-cinderclient-1.0.7-2.el6.noarch --> Processing Dependency: python-babel for package: python-cinderclient-1.0.7-2.el6.noarch ---> Package python-django-appconf.noarch 0:0.5-3.el6 will be installed --> Processing Dependency: Django14 for package: python-django-appconf-0.5-3.el6.noarch ---> Package python-django-compressor.noarch 0:1.3-2.el6 will be installed --> Processing Dependency: python-versiontools for package: python-django-compressor-1.3-2.el6.noarch --> Processing Dependency: Django for package: python-django-compressor-1.3-2.el6.noarch ---> Package python-django-horizon.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: pytz for package: python-django-horizon-2013.2.3-1.el6.noarch --> Processing Dependency: python-pbr for package: python-django-horizon-2013.2.3-1.el6.noarch --> Processing Dependency: python-lockfile for package: python-django-horizon-2013.2.3-1.el6.noarch --> Processing Dependency: python-dateutil for package: python-django-horizon-2013.2.3-1.el6.noarch --> Processing Dependency: Django14 for package: python-django-horizon-2013.2.3-1.el6.noarch ---> Package python-django-openstack-auth.noarch 0:1.1.2-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-openstack-auth-1.1.2-1.el6.noarch ---> Package python-eventlet.noarch 0:0.15.2-1.el6 will be installed --> Processing Dependency: python-greenlet for package: python-eventlet-0.15.2-1.el6.noarch ---> Package python-glanceclient.noarch 1:0.12.0-1.el6 will be installed --> Processing Dependency: python-warlock for package: 1:python-glanceclient-0.12.0-1.el6.noarch --> Processing Dependency: python-httplib2 for package: 1:python-glanceclient-0.12.0-1.el6.noarch --> Processing Dependency: pyOpenSSL for package: 1:python-glanceclient-0.12.0-1.el6.noarch ---> Package python-heatclient.noarch 0:0.2.6-2.el6 will be installed --> Processing Dependency: PyYAML for package: python-heatclient-0.2.6-2.el6.noarch ---> Package python-keystoneclient.noarch 1:0.7.1-2.el6 will be installed --> Processing Dependency: python-keyring for package: 1:python-keystoneclient-0.7.1-2.el6.noarch ---> Package python-netaddr.noarch 0:0.7.5-4.el6 will be installed ---> Package python-neutronclient.noarch 0:2.3.4-1.el6 will be installed --> Processing Dependency: python-cliff >= 1.0 for package: python-neutronclient-2.3.4-1.el6.noarch --> Processing Dependency: pyparsing for package: python-neutronclient-2.3.4-1.el6.noarch ---> Package python-novaclient.noarch 1:2.16.0-2.el6 will be installed ---> Package python-oslo-config.noarch 1:1.2.1-1.el6 will be installed ---> Package python-swiftclient.noarch 0:2.0.2-1.el6 will be installed ---> Package python-troveclient.noarch 0:0.1.4-3.el6 will be installed --> Running transaction check ---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package httpd-tools.x86_64 0:2.2.15-47.el6.centos.3 will be installed ---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed ---> Package pyOpenSSL.x86_64 0:0.13.1-2.el6 will be installed ---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed ---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed ---> Package python-cliff.noarch 0:1.4.4-1.el6 will be installed --> Processing Dependency: python-cmd2 for package: python-cliff-1.4.4-1.el6.noarch ---> Package python-dateutil.noarch 0:1.4.1-6.el6 will be installed ---> Package python-django.noarch 0:1.3.1-1.el6.rf will be installed ---> Package python-django-appconf.noarch 0:0.5-3.el6 will be installed --> Processing Dependency: Django14 for package: python-django-appconf-0.5-3.el6.noarch ---> Package python-django-horizon.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-horizon-2013.2.3-1.el6.noarch ---> Package python-django-openstack-auth.noarch 0:1.1.2-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-openstack-auth-1.1.2-1.el6.noarch ---> Package python-greenlet.x86_64 0:0.4.2-1.el6 will be installed ---> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed ---> Package python-iso8601.noarch 0:0.1.10-1.el6 will be installed ---> Package python-keyring.noarch 0:5.0-1.el6 will be installed ---> Package python-lockfile.noarch 0:0.8-3.el6 will be installed ---> Package python-pbr.noarch 0:0.8.0-1.el6 will be installed --> Processing Dependency: python-pip for package: python-pbr-0.8.0-1.el6.noarch ---> Package python-prettytable.noarch 0:0.7.2-1.el6.centos will be installed ---> Package python-pyparsing.noarch 0:1.5.6-2.el6.rf will be installed ---> Package python-requests.noarch 0:2.6.0-3.el6 will be installed --> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-3.el6.noarch --> Processing Dependency: python-ordereddict >= 1.1 for package: python-requests-2.6.0-3.el6.noarch --> Processing Dependency: python-chardet >= 2.2.1-1 for package: python-requests-2.6.0-3.el6.noarch ---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed ---> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed ---> Package python-six.noarch 0:1.9.0-2.el6 will be installed ---> Package python-versiontools.noarch 0:1.9.1-3.el6 will be installed ---> Package python-warlock.noarch 0:1.0.1-1.el6 will be installed --> Processing Dependency: python-jsonschema for package: python-warlock-1.0.1-1.el6.noarch --> Processing Dependency: python-jsonpatch for package: python-warlock-1.0.1-1.el6.noarch ---> Package python-yaml.x86_64 0:3.09-3.el6.rf will be installed ---> Package pytz.noarch 0:2010h-2.el6 will be installed --> Running transaction check ---> Package python-chardet.noarch 0:2.2.1-1.el6 will be installed ---> Package python-cmd2.noarch 0:0.6.4-7.el6 will be installed ---> Package python-django-appconf.noarch 0:0.5-3.el6 will be installed --> Processing Dependency: Django14 for package: python-django-appconf-0.5-3.el6.noarch ---> Package python-django-horizon.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-horizon-2013.2.3-1.el6.noarch ---> Package python-django-openstack-auth.noarch 0:1.1.2-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-openstack-auth-1.1.2-1.el6.noarch ---> Package python-jsonpatch.noarch 0:1.2-2.el6.centos will be installed --> Processing Dependency: python-jsonpointer for package: python-jsonpatch-1.2-2.el6.centos.noarch ---> Package python-jsonschema.noarch 0:2.3.0-1.el6 will be installed ---> Package python-libs.x86_64 0:2.6.6-51.el6 will be updated --> Processing Dependency: python-libs(x86-64) = 2.6.6-51.el6 for package: python-2.6.6-51.el6.x86_64 ---> Package python-libs.x86_64 0:2.6.6-64.el6 will be an update ---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed ---> Package python-urllib3.noarch 0:1.10.2-1.el6 will be installed --> Processing Dependency: python-backports-ssl_match_hostname for package: python-urllib3-1.10.2-1.el6.noarch --> Running transaction check ---> Package python.x86_64 0:2.6.6-51.el6 will be updated ---> Package python.x86_64 0:2.6.6-64.el6 will be an update ---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el6.centos will be installed --> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el6.centos.noarch ---> Package python-django-appconf.noarch 0:0.5-3.el6 will be installed --> Processing Dependency: Django14 for package: python-django-appconf-0.5-3.el6.noarch ---> Package python-django-horizon.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-horizon-2013.2.3-1.el6.noarch ---> Package python-django-openstack-auth.noarch 0:1.1.2-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-openstack-auth-1.1.2-1.el6.noarch ---> Package python-jsonpointer.noarch 0:1.0-3.el6.centos will be installed --> Running transaction check ---> Package python-backports.x86_64 0:1.0-5.el6 will be installed ---> Package python-django-appconf.noarch 0:0.5-3.el6 will be installed --> Processing Dependency: Django14 for package: python-django-appconf-0.5-3.el6.noarch ---> Package python-django-horizon.noarch 0:2013.2.3-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-horizon-2013.2.3-1.el6.noarch ---> Package python-django-openstack-auth.noarch 0:1.1.2-1.el6 will be installed --> Processing Dependency: Django14 for package: python-django-openstack-auth-1.1.2-1.el6.noarch --> Finished Dependency Resolution Error: Package: python-django-openstack-auth-1.1.2-1.el6.noarch (openstack-havana) Requires: Django14 Error: Package: python-django-appconf-0.5-3.el6.noarch (openstack-havana) Requires: Django14 Error: Package: python-django-horizon-2013.2.3-1.el6.noarch (openstack-havana) Requires: Django14 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@openstack ~]# yum -y install openstack-dashboard

--> Finished Dependency Resolution
Error: Package: python-django-openstack-auth-1.1.2-1.el6.noarch (openstack-havana)
Requires: Django14
Error: Package: python-django-appconf-0.5-3.el6.noarch (openstack-havana)
Requires: Django14
Error: Package: python-django-horizon-2013.2.3-1.el6.noarch (openstack-havana)
Requires: Django14
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

nihena8015
nihena8015 回复qq_34226779: 没有解决,yum update 更新后,安装也报这个错误,不知道什么原因。3月初我安装的时候没有任何问题,在10号后安装就报这个错误。
接近 4 年之前 回复
qq_34226779
qq_34226779 你解决了吗
接近 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
centos7.2 安装openstack-dashboard 报错
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty/common/python-django-1.8.14-1.el7.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=centos-openstack-liberty clean metadata Trying other mirror.
centos配置本地YUM时,将/dev/cdrom 挂载在/media/centOS下,
如题,我用的是虚拟机 centos配置本地YUM时,将/dev/cdr怎么找不到/repodata目录om 挂载在/media/centOS下,怎么找不到/repodata目录。
Centos7 yum update报错
![图片说明](https://img-ask.csdn.net/upload/201803/13/1520911461_409980.jpg) 我是本地搭建了两个yum源,之后更新的时候会报这个错误,急急急!
openstack 登陆不上dashboard 500
systemctl restart httpd memcached重启正常无报错,但是在网页访问 http://192.168.10.11/dashboard就报错了!! 网页显示内容: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. **error_log:** [Tue Apr 16 12:12:21.668699 2019] [suexec:notice] [pid 17748] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Apr 16 12:12:21.683331 2019] [auth_digest:notice] [pid 17748] AH01757: generating secret for digest authentication ... [Tue Apr 16 12:12:21.684405 2019] [lbmethod_heartbeat:notice] [pid 17748] AH02282: No slotmem from mod_heartmonitor [Tue Apr 16 12:12:21.692264 2019] [mpm_prefork:notice] [pid 17748] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations [Tue Apr 16 12:12:21.692312 2019] [core:notice] [pid 17748] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Tue Apr 16 12:12:44.497412 2019] [:error] [pid 17753] WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle. [Tue Apr 16 12:12:45.992718 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod_wsgi (pid=17753): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module. [Tue Apr 16 12:12:45.992801 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod_wsgi (pid=17753): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Tue Apr 16 12:12:45.992834 2019] [:error] [pid 17753] [remote 192.168.10.1:68] Traceback (most recent call last): [Tue Apr 16 12:12:45.992852 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 40, in <module> [Tue Apr 16 12:12:45.992936 2019] [:error] [pid 17753] [remote 192.168.10.1:68] application = get_wsgi_application() [Tue Apr 16 12:12:45.992949 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application [Tue Apr 16 12:12:45.992985 2019] [:error] [pid 17753] [remote 192.168.10.1:68] django.setup(set_prefix=False) [Tue Apr 16 12:12:45.992994 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup [Tue Apr 16 12:12:45.993032 2019] [:error] [pid 17753] [remote 192.168.10.1:68] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) [Tue Apr 16 12:12:45.993042 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__ [Tue Apr 16 12:12:45.993109 2019] [:error] [pid 17753] [remote 192.168.10.1:68] self._setup(name) [Tue Apr 16 12:12:45.993118 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup [Tue Apr 16 12:12:45.993131 2019] [:error] [pid 17753] [remote 192.168.10.1:68] self._wrapped = Settings(settings_module) [Tue Apr 16 12:12:45.993137 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__ [Tue Apr 16 12:12:45.993146 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod = importlib.import_module(self.SETTINGS_MODULE) [Tue Apr 16 12:12:45.993154 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module [Tue Apr 16 12:12:45.993191 2019] [:error] [pid 17753] [remote 192.168.10.1:68] __import__(name) [Tue Apr 16 12:12:45.993199 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 460, in <module> [Tue Apr 16 12:12:45.993304 2019] [:error] [pid 17753] [remote 192.168.10.1:68] '.secret_key_store')) [Tue Apr 16 12:12:45.993313 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 70, in generate_or_read_from_file [Tue Apr 16 12:12:45.993380 2019] [:error] [pid 17753] [remote 192.168.10.1:68] key = read_from_file(key_file) [Tue Apr 16 12:12:45.993398 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 52, in read_from_file [Tue Apr 16 12:12:45.993413 2019] [:error] [pid 17753] [remote 192.168.10.1:68] with open(key_file, 'r') as f: [Tue Apr 16 12:12:45.993428 2019] [:error] [pid 17753] [remote 192.168.10.1:68] IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/.secret_key_store' **acces_log:** 192.168.10.128 - - [16/Apr/2019:12:12:30 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/allocations HTTP/1.1" 200 54 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:38 +0800] "GET /resource_providers?in_tree=96408690-7cca-44ad-b187-13ee8fadbca6 HTTP/1.1" 200 807 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.1 - - [16/Apr/2019:12:12:43 +0800] "GET /dashboard HTTP/1.1" 500 527 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" 192.168.10.128 - - [16/Apr/2019:12:12:45 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:48 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/aggregates HTTP/1.1" 200 53 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:48 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/traits HTTP/1.1" 200 368 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:49 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/allocations HTTP/1.1" 200 54 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers?in_tree=96408690-7cca-44ad-b187-13ee8fadbca6 HTTP/1.1" 200 807 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/aggregates HTTP/1.1" 200 53 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/traits HTTP/1.1" 200 368 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5"
centos7没有openstack的newton版的仓库
yum -y install centos-release-openstack-newton No package centos-release-openstack-newton available. n版以上的好像都有
VirtualBox安装centos7后yum无法使用
我按照https://www.cnblogs.com/sunylat/p/7214753.html的教程走 但是我的vi ifcfg-ens33输入后如图:![图片说明](https://img-ask.csdn.net/upload/201809/12/1536682516_205761.jpg) 求解
CentOS使用yum update出现安装包依赖问题
运行命令后出现下面这样的情况 ![图片说明](https://img-ask.csdn.net/upload/201910/30/1572430606_672876.png) ![图片说明](https://img-ask.csdn.net/upload/201910/30/1572430662_268011.png) ![图片说明](https://img-ask.csdn.net/upload/201910/30/1572430682_748590.png) 百度好多,yum clean all,然后yum makecache,然并卵。 大部分都这样写,要不就是更新yum.repos.d的源,也没用。我甚至自己用虚拟机创建了一个CentOS6.9,然后把里面的yum.repos.d文件打包放到这个服务器上,仍然没有用。 请教一下怎么解决??? (不能重装!!!!!!!!!!!!!!!!!)
CentOS7上用packstack安装openstack出现错误,求哪位老哥帮忙解决
我虚拟机上的操作系统是CentOs7,使用的是NAT网络连接,把yum源换成了网易163的源,epel源换成了阿里云的源,然后我是按照https://www.rdoproject.org/install/quickstart/,这里面的官方教程,sudo yum install -y centos-release-openstack-newton, sudo yum update -y,sudo yum install -y openstack-packstack,packstack --allinone。一直运行到最后一步,packstack --allinone,结果出现了错误,如图所示,![图片说明](https://img-ask.csdn.net/upload/201610/26/1477489196_122019.jpg)不知道怎么回事?有哪位老哥帮忙解决一下!
centos 7安装 yum install openssl-devel出现了问题,求解!
``` Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help). The program yum-complete-transaction is found in the yum-utils package. --> Running transaction check ---> Package openssl-devel.x86_64 1:1.0.1e-60.el7 will be installed --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-60.el7.x86_64 --> Running transaction check ---> Package krb5-devel.x86_64 0:1.14.1-27.el7_3 will be installed --> Processing Dependency: libkadm5(x86-64) = 1.14.1-27.el7_3 for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libverto-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed ---> Package libcom_err-devel.x86_64 0:1.42.9-9.el7 will be installed ---> Package libkadm5.x86_64 0:1.14.1-27.el7_3 will be installed ---> Package libselinux-devel.x86_64 0:2.5-6.el7 will be installed --> Processing Dependency: libselinux(x86-64) = 2.5-6.el7 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-6.el7.x86_64 ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed --> Running transaction check ---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated ---> Package libselinux.x86_64 0:2.5-6.el7 will be an update --> Processing Dependency: libsepol(x86-64) >= 2.5-6 for package: libselinux-2.5-6.el7.x86_64 --> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: libselinux-2.5-6.el7.x86_64 ---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed --> Running transaction check ---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated ---> Package libsepol.x86_64 0:2.5-6.el7 will be an update --> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20 --> Finished Dependency Resolution Error: libselinux conflicts with systemd-container-208.20-6.el7.centos.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest ```
虚拟机Centos7下使用yum安装的Apache2.4.6无法启动prefork的问题
我先说我遇到的问题的过程 安装过程没有任何报错.使用httpd -l查看结果为 core.c mod_so.c http_core.c 使用httpd -M查看发现mpm_prefork_module (shared)处于动态加载状态 编译配置文件httpd.conf加入LoadModule mpm_prefork_module modules/mod_mpm_prefork.so重启Apache后使用httpd -l查看仍然没有,httpd.conf配置文件中也没有任何有关MPM的代码. mod_so.c这个加载列里有一个00-mpm.conf我打开看了里面是LoadModule mpm_prefork_module modules/mod_mpm_prefork.so,是不是只要在这个队列里的就会只简化显示mod.so.c啊??? 注:httpd.conf与00-mpm.conf两个文件共同存在LoadModule mpm_prefork_module modules/mod_mpm_prefork.so或单个存在均不报错,httpd -l也仍然没有prefork.c 我现在想问的是,是不是这个版本的Apache已经把MPM集成到内核里了所以不显示啊,不然那又是什么原因导致的在httpd -l中无法看到,网上能找到的能试的方法都试过了,所以复制粘贴的回答就不用了,非常困扰我,希望知情人士解惑,万分感谢! ![命令行返回及配置文件](https://img-ask.csdn.net/upload/201705/05/1493961932_366387.png)
centos7yum的使用和常见问题
我在安装centos后,在使用yum安装软件时报错,不断的查找镜像。有时候还出现了网络不可达等等错误。这个yum怎么这难弄,那种系统很适合虚拟机
centos yum install 错误
![图片说明](https://img-ask.csdn.net/upload/201709/29/1506691881_909031.png) 使用centos的yum 下载东西 ,但是出现了下面的错误,上网看了好多人都说是dns解析错误,需要修改/etc/resolv.conf,加入8.8.8.8,但是我修改了还是没有用,求大神指点,我这个是VMware上的,是不是跟虚拟机的dns配置有关? 能够ping通其他外网和地址,应该不是网络的问题
redhat安装centos的yum 时出现的问题 求大神解答
在安装这个文件的时候 rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm 的时候 报这个错误 warning: yum-metadata-parser-1.1.2-16.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-metadata-parser-1.1.2-16.el6.x86_64 未什么 求大神解答
centos下安装mysql,安装上了,但死活进不去啊啊
我是在VMware 上装的centos,然后安装mysql 命令: yum install wget wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum install mysql-server 这样就安装完成mysql了,我们可以用命令查看一下是否安装成功了 命令是:rpm -qa | grep mysql 显示: mysql-community-release-el7-5.noarch mysql-community-libs-5.6.23-3.el7.x86_64 mysql-community-server-5.6.23-3.el7.x86_64 mysql-community-common-5.6.23-3.el7.x86_64 mysql-community-client-5.6.23-3.el7.x86_64 刚刚安装好的时候是能进去的 直接 mysql 改了下密码,用的是这个命令: # mysql -uroot mysql> set password for ‘root’@‘localhost’ = password('我的密码'); mysql> exit 然后就进不去了 然后我就重装 重装时,我也注意到需要将上个mysql卸载干净,这样卸载的: yum remove mysql mysql-server mysql-libs mysql-client; find / -name mysql 将找到的相关东西删掉; rm -rf 目录 -删除目录 rpm -qa|grep mysql(查询出来的东东yum remove掉) 然后安装完后,输入:mysql 提示: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 咋回事呢 新人没币打赏啊 静待好心人解答
关于CentOS中不能使用yum命令的问题!求助!!!
![图片说明](https://img-ask.csdn.net/upload/201602/01/1454303542_61365.png)我刚开始学习CentOS,不知道yum怎么用,希望各位大神帮帮忙,感激不尽~
如何解决使用yum无法安装containuer-selinux、docker的问题?
## 1. 最近准备在linux上安装docker,而安装docker之前就需要安装container-selinux、selinux-policy ![图片说明](https://img-ask.csdn.net/upload/201905/05/1557042666_31883.png) ## 2.尝试过像网上所说(https://blog.csdn.net/qq_41772936/article/details/81080284) 的将tencent的镜像、源换成aliyun,但执行yum makecache命令就一直Trying other mirror.用yum安装container-selinux,出现了以前一样的问题。 ![图片说明](https://img-ask.csdn.net/upload/201905/05/1557043170_982023.png) ## 3 .看网上的教程多次修改过centos-base.repo和centos-epel.repo文件,频繁的更换yum源,很怀疑是因为yum的配置文件修改有误才导致的一系列问题。因为卸载并重装过yum还是出现同样的问题。 ## ![图片说明](https://img-ask.csdn.net/upload/201905/05/1557043399_214872.png) ![图片说明](https://img-ask.csdn.net/upload/201905/05/1557043516_409194.png) ## 所以问一下大佬们如何修改配置文件或者使用什么yum源来顺利安装container-selinx和docker(也不懂Linux系统里是怎么处理各种软件安装包的……)
centos中yum下载的时候出现无法连接主机如何终止回到命令行中
执行yum命令的时候,有时候会出现连不上主机啦等一些问题,然后就卡在哪里,一直在尝试连接, 我想问怎么终止当前yum ,回到 命令操作状态
centos6安装mysql5.7出错:yum install mysql-community-server出错
安装mysql5.7,参考教程:https://www.php.cn/mysql-tutorials-386847.html 一开始不知道 地址中的el7应该对应自己的centos版本,直接执行该命令进行下载 ``` wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm ``` 然后执行以下命令也没有报错, ``` yum -y localinstall mysql57-community-release-el7-11.noarch.rpm ``` 但是执行下面命令的时候一直报错 ``` yum -y install mysql-community-server ``` 之后重新下载centos6的版本,安装源 ``` # wget https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm # yum -y localinstall mysql57-community-release-el6-11.noarch.rpm ``` 然而进行安装的时候还是报错 ``` yum -y install mysql-community-server ``` 原因在于他还是跑去安装el7的版本了 ``` ---> Package mysql-community-server.i686 0:5.7.17-1.el7 will be 安装 ``` 尝试了各种方法,重装了好多次,能删除的就删除,结果一直都是这样 获取mysql-community-server的信息,结果如下: ![图片说明](https://img-ask.csdn.net/upload/201907/25/1563987255_628071.png) 尝试删除无果: ``` [root@localhost ~]# yum remove mysql-community-server 已加载插件:fastestmirror, security 设置移除进程 参数 mysql-community-server 没有匹配 Loading mirror speeds from cached hostfile Package(s) mysql-community-server available, but not installed. 不删除任何软件包 ``` 真的搞了一天,心累啊!如果哪个好心人看到,可以提点提点,真的万分感谢!
CentOS 7.0 U盘安装失败
用U盘安装CentOS7,在安装的时候在“启动安装包进程”卡住,然后提示错误无法安装。请问要怎么解决?
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
相关热词 c# clr dll c# 如何orm c# 固定大小的字符数组 c#框架设计 c# 删除数据库 c# 中文文字 图片转 c# 成员属性 接口 c#如何将程序封装 16进制负数转换 c# c#练手项目
立即提问